From 775307c0310e6f5045669a511825192a84f818b7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:52:07 +0000 Subject: [PATCH 1/4] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit/compare/v4.1.0...v4.2.0) - [github.com/hauntsaninja/black-pre-commit-mirror: 24.10.0 → 25.1.0](https://github.com/hauntsaninja/black-pre-commit-mirror/compare/24.10.0...25.1.0) - [github.com/PyCQA/pylint: v3.3.3 → v3.3.6](https://github.com/PyCQA/pylint/compare/v3.3.3...v3.3.6) - [github.com/PyCQA/flake8: 7.1.1 → 7.2.0](https://github.com/PyCQA/flake8/compare/7.1.1...7.2.0) - [github.com/PyCQA/isort: 5.13.2 → 6.0.1](https://github.com/PyCQA/isort/compare/5.13.2...6.0.1) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.15.0) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) - [github.com/asottile/setup-cfg-fmt: v2.7.0 → v2.8.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.7.0...v2.8.0) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cee4272c..dc8fa082 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,28 +8,28 @@ repos: - id: trailing-whitespace - id: debug-statements - repo: https://github.com/pre-commit/pre-commit - rev: v4.1.0 + rev: v4.2.0 hooks: - id: validate_manifest - repo: https://github.com/hauntsaninja/black-pre-commit-mirror # black compiled with mypyc - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/PyCQA/pylint - rev: v3.3.3 + rev: v3.3.6 hooks: - id: pylint files: ^(nbqa|tests)/ exclude: ^tests/data/ - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.2.0 hooks: - id: flake8 additional_dependencies: [flake8-typing-imports==1.14.0] exclude: tests/data - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/PyCQA/pydocstyle @@ -38,7 +38,7 @@ repos: - id: pydocstyle files: ^nbqa/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.14.1 + rev: v1.15.0 hooks: - id: mypy exclude: ^docs/ @@ -53,7 +53,7 @@ repos: hooks: - id: auto-walrus - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell files: \.(py|rst|md)$ @@ -68,7 +68,7 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.7.0 + rev: v2.8.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/PyCQA/autoflake From 707bfbdbf759daa0fc44531c7b746d2a3f35e89b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:52:30 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/clean_build_artifacts.py | 2 +- setup.cfg | 1 - tests/test_nbqa_diff.py | 8 ++++---- tests/tools/test_black.py | 8 ++++---- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/clean_build_artifacts.py b/docs/clean_build_artifacts.py index 260adfcd..7f498451 100644 --- a/docs/clean_build_artifacts.py +++ b/docs/clean_build_artifacts.py @@ -1,4 +1,4 @@ -"""Cross platform way to call 'rm -rf docs/_build/ docs/api/' """ +"""Cross platform way to call 'rm -rf docs/_build/ docs/api/'""" from pathlib import Path from shutil import rmtree diff --git a/setup.cfg b/setup.cfg index f7be9f59..9273f88e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,6 @@ classifiers = Environment :: Console Framework :: Jupyter Intended Audience :: Developers - License :: OSI Approved :: MIT License Natural Language :: English Operating System :: OS Independent Programming Language :: Python :: 3 diff --git a/tests/test_nbqa_diff.py b/tests/test_nbqa_diff.py index 1a07ea8b..fc6858ab 100644 --- a/tests/test_nbqa_diff.py +++ b/tests/test_nbqa_diff.py @@ -10,10 +10,10 @@ from _pytest.capture import CaptureFixture -SPARKLES = "\N{sparkles}" -SHORTCAKE = "\N{shortcake}" -COLLISION = "\N{collision symbol}" -BROKEN_HEART = "\N{broken heart}" +SPARKLES = "\N{SPARKLES}" +SHORTCAKE = "\N{SHORTCAKE}" +COLLISION = "\N{COLLISION SYMBOL}" +BROKEN_HEART = "\N{BROKEN HEART}" TESTS_DIR = Path("tests") TEST_DATA_DIR = TESTS_DIR / "data" diff --git a/tests/tools/test_black.py b/tests/tools/test_black.py index 16a03fd7..ab8fbeb1 100644 --- a/tests/tools/test_black.py +++ b/tests/tools/test_black.py @@ -15,10 +15,10 @@ from _pytest.capture import CaptureFixture from py._path.local import LocalPath -SPARKLES = "\N{sparkles}" -SHORTCAKE = "\N{shortcake}" -COLLISION = "\N{collision symbol}" -BROKEN_HEART = "\N{broken heart}" +SPARKLES = "\N{SPARKLES}" +SHORTCAKE = "\N{SHORTCAKE}" +COLLISION = "\N{COLLISION SYMBOL}" +BROKEN_HEART = "\N{BROKEN HEART}" def test_black_works(tmp_notebook_for_testing: Path, capsys: "CaptureFixture") -> None: From 63284b251fa810ea8e880999e2f35e9893da6719 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 1 May 2025 13:50:52 +0100 Subject: [PATCH 3/4] update --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index c1611701..4d5744bf 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -"""Define some fixtures that can be re-used between tests.""" +"""Define some fixtures that can be reused between tests.""" import shutil import sys From 14593d38bb9188d21d870eabcaf8a467c267ddb0 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 1 May 2025 13:51:37 +0100 Subject: [PATCH 4/4] remove docs-links --- .github/workflows/docs.yml | 2 +- tox.ini | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b6028101..0ab84eb2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,7 +10,7 @@ jobs: name: "Running: ${{ matrix.tox-env-name }}" strategy: matrix: - tox-env-name: ["docs", "docs-links"] + tox-env-name: ["docs"] runs-on: ubuntu-latest steps: diff --git a/tox.ini b/tox.ini index 884f02bf..c596dc3c 100644 --- a/tox.ini +++ b/tox.ini @@ -6,11 +6,6 @@ deps = -rdocs/requirements-docs.txt commands = {envpython} -m sphinx -b html docs docs/_build/html -[testenv:docs-links] -deps = -rdocs/requirements-docs.txt -commands = - {envpython} -m sphinx -b linkcheck docs docs/_build/html - [testenv:clean-docs] skip_install = true deps =