diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23947c1..13d3d13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,23 +2,23 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - - repo: https://github.com/psf/black - rev: 23.12.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 8.0.1 hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.11 + rev: v0.15.9 hooks: - id: ruff diff --git a/tests/test_basic.py b/tests/test_basic.py index 98128f7..ace89ac 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -4,8 +4,7 @@ def test_basic(sphinx_doctree: CreateDoctree): sphinx_doctree.set_conf({"extensions": ["sphinx_pyscript"]}) sphinx_doctree.buildername = "html" - result = sphinx_doctree( - """ + result = sphinx_doctree(""" Test ---- @@ -23,11 +22,8 @@ def test_basic(sphinx_doctree: CreateDoctree): print("Hello World") - """ - ) - assert ( - [li.rstrip() for li in result.pformat().strip().splitlines()] - == """ + """) + assert [li.rstrip() for li in result.pformat().strip().splitlines()] == """
@@ -51,4 +47,3 @@ def test_basic(sphinx_doctree: CreateDoctree): } </py-config> """.strip().splitlines() - )