Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down