From 0506549fd2c5fd6bc5112adcf3ff67975e19fbbd Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:57:35 +0100 Subject: [PATCH] v1.8.7 --- .github/workflows/dispatch_pre-commit.yml | 6 +++--- .github/workflows/docs.yml | 8 ++++---- .github/workflows/publish_to_pypi.yml | 8 ++++---- .github/workflows/tox.yml | 4 ++-- README.md | 2 +- docs/history.rst | 2 +- docs/pre-commit.rst | 6 +++--- nbqa/__init__.py | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dispatch_pre-commit.yml b/.github/workflows/dispatch_pre-commit.yml index f4f682da..c89f64e7 100644 --- a/.github/workflows/dispatch_pre-commit.yml +++ b/.github/workflows/dispatch_pre-commit.yml @@ -7,13 +7,13 @@ jobs: runPreCommit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: ${{github.event.client_payload.pull_request.head.repo.full_name}} ref: ${{github.event.client_payload.pull_request.head.ref}} token: ${{ secrets.ACTION_TRIGGER_TOKEN }} - name: Cache multiple paths - uses: actions/cache@v2 + uses: actions/cache@v4 env: # Increase this value to reset cache if requirements.txt has not changed CACHE_NUMBER: 0 @@ -25,7 +25,7 @@ jobs: ~/.cache/pre-commit key: ${{ runner.os }}-build-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: 3.8 - name: install-pre-commit diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cf19fde8..a514df6c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 with: python-version: 3.8 # Same as RTD - name: Cache multiple paths - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.cache/pip key: docs @@ -29,7 +29,7 @@ jobs: run: tox -e ${{ matrix.tox-env-name }} - name: Upload docs artifact if: ${{ matrix.tox-env-name }} == "docs" - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: nbqa-docs path: docs/_build/html diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index e26b2268..46276a24 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -22,7 +22,7 @@ jobs: - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ @@ -42,7 +42,7 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ @@ -63,12 +63,12 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ - name: Sign the dists with Sigstore - uses: sigstore/gh-action-sigstore-python@v1.2.3 + uses: sigstore/gh-action-sigstore-python@v3.0.0 with: inputs: >- ./dist/*.tar.gz diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 170a0a2e..9ec7aee8 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -14,12 +14,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Cache multiple paths - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/pip diff --git a/README.md b/README.md index 82032fed..a49b0770 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ Here's an example of how to set up some pre-commit hooks: put this in your `.pre ```yaml - repo: https://github.com/nbQA-dev/nbQA - rev: 1.8.6 + rev: 1.8.7 hooks: - id: nbqa-black additional_dependencies: [jupytext] # optional, only if you're using Jupytext diff --git a/docs/history.rst b/docs/history.rst index f3e8a0e5..41677f3d 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -2,7 +2,7 @@ Changelog ========= -1.8.6 (2024-08-05) +1.8.7 (2024-08-05) ~~~~~~~~~~~~~~~~~~ Ruff/pylint compat. diff --git a/docs/pre-commit.rst b/docs/pre-commit.rst index f39db1d1..ec59a831 100644 --- a/docs/pre-commit.rst +++ b/docs/pre-commit.rst @@ -13,7 +13,7 @@ Here's an example of what you could include in your ``.pre-commit-config.yaml`` repos: - repo: https://github.com/nbQA-dev/nbQA - rev: 1.8.6 + rev: 1.8.7 hooks: - id: nbqa-black additional_dependencies: [black==20.8b1] @@ -35,7 +35,7 @@ If you have your own custom tool (e.g. ``customtool``) for which we currently do .. code-block:: yaml - repo: https://github.com/nbQA-dev/nbQA - rev: 1.8.6 + rev: 1.8.7 hooks: - id: nbqa entry: nbqa customtool @@ -55,7 +55,7 @@ To pass command line arguments, use the `pre-commit args