Skip to content

Commit f78741f

Browse files
committed
Lint
1 parent 2941a39 commit f78741f

4 files changed

Lines changed: 17 additions & 13 deletions

File tree

tests/conftest.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
pytest.param("3.11", marks=only_version("3.11", "Output differs on each version.")),
1818
pytest.param("3.12", marks=only_version("3.12", "Output differs on each version.")),
1919
pytest.param("3.13", marks=only_version("3.13", "Output differs on each version.")),
20-
]
20+
],
2121
)
2222
def version(request) -> str:
2323
return request.param
@@ -27,15 +27,19 @@ def version(request) -> str:
2727
params=[
2828
pytest.param(
2929
"forward",
30-
marks=pytest.mark.
31-
skipif(os.sep == '\\', reason=r"Output differs on platforms where os.sep == '\\'")
30+
marks=pytest.mark.skipif(
31+
os.sep == '\\',
32+
reason=r"Output differs on platforms where os.sep == '\\'",
33+
),
3234
),
3335
pytest.param(
3436
"backward",
35-
marks=pytest.mark.
36-
skipif(os.sep == '/', reason="Output differs on platforms where os.sep == '/'")
37+
marks=pytest.mark.skipif(
38+
os.sep == '/',
39+
reason="Output differs on platforms where os.sep == '/'",
40+
),
3741
),
38-
]
42+
],
3943
)
4044
def os_sep(request) -> str:
4145
return request.param

tests/test_tox_envlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def toxinidir(tmp_pathplus: PathPlus) -> PathPlus:
3838
pytest.param(["-n", "qa"], id="qa_envlist"),
3939
pytest.param(["-n", "qa", "--", "--verbose"], id="envlist_posargs"),
4040
pytest.param(["-n", "qa", "-e", "mypy"], id="invalid_combo"),
41-
]
41+
],
4242
)
4343
@pytest.mark.usefixtures("version", "os_sep")
4444
def test_tox_envlist(

tests/test_tox_envlist_braces.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
# 3rd party
77
import pytest
8-
import tox # type: ignore
9-
import tox.reporter # type: ignore
8+
import tox # type: ignore[import-untyped]
9+
import tox.reporter # type: ignore[import-untyped]
1010
from coincidence.regressions import AdvancedFileRegressionFixture
1111
from domdf_python_tools.paths import PathPlus
1212
from testing_tox import prepare_stdout, run_tox
@@ -39,7 +39,7 @@ def toxinidir(tmp_pathplus: PathPlus) -> PathPlus:
3939
pytest.param(["-n", "qa"], id="qa_envlist"),
4040
pytest.param(["-n", "qa", "--", "--verbose"], id="envlist_posargs"),
4141
pytest.param(["-n", "qa", "-e", "mypy"], id="invalid_combo"),
42-
]
42+
],
4343
)
4444
@pytest.mark.usefixtures("version", "os_sep")
4545
def test_tox_envlist(

tox_envlist/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262

6363
@hookimpl
64-
def tox_addoption(parser: config.Parser) -> None:
64+
def tox_addoption(parser: config.Parser) -> None: # noqa: PRM002
6565
"""
6666
Add a command line option to choose a different envlist.
6767
"""
@@ -85,7 +85,7 @@ def tox_addoption(parser: config.Parser) -> None:
8585

8686

8787
@hookimpl
88-
def tox_configure(config: config.Config) -> config.Config:
88+
def tox_configure(config: config.Config) -> config.Config: # noqa: PRM002
8989
"""
9090
Parse the command line and ini options.
9191
"""
@@ -131,7 +131,7 @@ def tox_configure(config: config.Config) -> config.Config:
131131

132132
elif envlist_name_set:
133133
config._parser.argparser.error(
134-
f"Unknown envlist {arg[1]!r}. (envlists are {word_join(envlists, use_repr=True)})"
134+
f"Unknown envlist {arg[1]!r}. (envlists are {word_join(envlists, use_repr=True)})",
135135
)
136136

137137
config.args = list(chain.from_iterable(args))

0 commit comments

Comments
 (0)