diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 7c3b819..cc08afb 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -22,25 +22,4 @@ jobs: shell: bash pre-commit: - runs-on: ubuntu-latest - steps: - - name: Check out - uses: actions/checkout@v3 - - - name: Install commitizen - run: pipx install poetry - - - name: Set up python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: 'poetry' - - - run: poetry install --with=dev - - - uses: actions/cache@v4 - with: - path: ~/.cache/pre-commit - key: pre-commit-v0|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} - - - run: poetry run pre-commit run --show-diff-on-failure --color=always --all-files + uses: janw/workflows/.github/workflows/poetry-pre-commit.yaml@main diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 490bee6..14401b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,3 @@ -ci: - autofix_prs: false - autoupdate_schedule: quarterly - autoupdate_commit_msg: 'build(pre-commit): [pre-commit.ci] pre-commit autoupdate' - skip: # see linters.yaml -> pre-commit job - - "rich-codex" - - "mypy" - repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: 'v0.1.11' @@ -31,22 +23,6 @@ repos: - repo: local hooks: - - id: rich-codex - name: rich-codex - language: system - entry: > - env - FORCE_COLOR=1 - TERMINAL_WIDTH=140 - poetry run rich-codex - --skip-git-checks - --no-confirm - --terminal-theme MONOKAI - --created-files .assets/created.txt - pass_filenames: false - types: [markdown] - files: '(\.md|cli\.py|config\.py)$' - - id: mypy name: mypy entry: poetry run mypy