diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfecd3f..fd4cf5d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.12.1" + rev: "v2.14.2" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.14" + rev: "v0.15.0" hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index fd6c17d..f9d3ff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ keywords = [ license = "MIT" maintainers = [ { name = "Bernat Gabor", email = "gaborjbernat@gmail.com" }, -] # noqa: E999 +] requires-python = ">=3.11" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -82,7 +82,6 @@ lint.ignore = [ "ISC001", # Conflict with formatter "S104", # Possible binding to all interface ] - lint.per-file-ignores."roots/**/*.py" = [ "D", # no docs "INP001", # no namespace diff --git a/tests/test_logic.py b/tests/test_logic.py index ffbba28..457e60d 100644 --- a/tests/test_logic.py +++ b/tests/test_logic.py @@ -148,8 +148,8 @@ def test_usage_width_custom(build_outcome: str) -> None: @pytest.mark.sphinx(buildername="text", testroot="complex") @pytest.mark.prepare(directive_args=[":usage_first:"]) def test_set_usage_first(build_outcome: str) -> None: - assert "complex [-h]" in build_outcome.split("argparse tester")[0] - assert "complex first [-h]" in build_outcome.split("a-first-desc")[0] + assert "complex [-h]" in build_outcome.split("argparse tester", maxsplit=1)[0] + assert "complex first [-h]" in build_outcome.split("a-first-desc", maxsplit=1)[0] @pytest.mark.sphinx(buildername="text", testroot="suppressed-action")