Skip to content

Commit 948630f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fbe5c9d commit 948630f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ keywords = [
1616
license = "MIT"
1717
maintainers = [
1818
{ name = "Bernat Gabor", email = "gaborjbernat@gmail.com" },
19-
] # noqa: E999
19+
]
2020
requires-python = ">=3.11"
2121
classifiers = [
2222
"Development Status :: 5 - Production/Stable",
@@ -82,7 +82,6 @@ lint.ignore = [
8282
"ISC001", # Conflict with formatter
8383
"S104", # Possible binding to all interface
8484
]
85-
8685
lint.per-file-ignores."roots/**/*.py" = [
8786
"D", # no docs
8887
"INP001", # no namespace

tests/test_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def test_usage_width_custom(build_outcome: str) -> None:
148148
@pytest.mark.sphinx(buildername="text", testroot="complex")
149149
@pytest.mark.prepare(directive_args=[":usage_first:"])
150150
def test_set_usage_first(build_outcome: str) -> None:
151-
assert "complex [-h]" in build_outcome.split("argparse tester")[0]
152-
assert "complex first [-h]" in build_outcome.split("a-first-desc")[0]
151+
assert "complex [-h]" in build_outcome.split("argparse tester", maxsplit=1)[0]
152+
assert "complex first [-h]" in build_outcome.split("a-first-desc", maxsplit=1)[0]
153153

154154

155155
@pytest.mark.sphinx(buildername="text", testroot="suppressed-action")

0 commit comments

Comments
 (0)