diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc51b57c..348275dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,10 +167,10 @@ jobs: task: - name: Check Newsfragment tox: check-newsfragment + run-if: ${{ github.head_ref != 'pre-commit-ci-update-config' }} - name: Check package manifest tox: check-manifest - - name: Check pre-commit - tox: pre-commit + run-if: true steps: - uses: actions/checkout@v3 @@ -194,6 +194,7 @@ jobs: - uses: twisted/python-info-action@v1 - name: Tox + if: ${{ matrix.task.run-if }} run: tox -c tox.ini -e ${{ matrix.task.tox }} pypi-publish: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 76039e21..f18e71ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,12 @@ ci: repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.6.0 hooks: - id: black - repo: https://github.com/asottile/pyupgrade - rev: v2.32.0 + rev: v2.37.3 hooks: - id: pyupgrade args: [--py37-plus] @@ -21,12 +21,12 @@ repos: additional_dependencies: [toml] - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 5.0.2 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.3.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer