Skip to content

Commit 16d260a

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

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

tests/test_cli.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def fix_stdout(stdout: str) -> str:
4343
marks=[not_windows("Output differs on Linux"), not_macos("Output differs on Linux")],
4444
),
4545
pytest.param("Darwin", marks=only_macos("Output differs on macOS")),
46-
]
46+
],
4747
)
4848
def platforms(request) -> str:
4949
return request.param
@@ -78,7 +78,7 @@ def platforms(request) -> str:
7878
),
7979
pytest.param("3.10", marks=only_version("3.10", reason="Output differs on Python 3.10")),
8080
pytest.param("3.11", marks=only_version("3.11", reason="Output differs on Python 3.11")),
81-
]
81+
],
8282
)
8383
def version(request) -> str:
8484
return request.param
@@ -178,10 +178,13 @@ def test_cli_errors_count(
178178
assert result.exit_code == 1
179179

180180

181-
@pytest.mark.parametrize("args", [
182-
("collections", "importlib", "--count"),
183-
("collections", "--count"),
184-
])
181+
@pytest.mark.parametrize(
182+
"args",
183+
[
184+
("collections", "importlib", "--count"),
185+
("collections", "--count"),
186+
],
187+
)
185188
def test_cli_count_modules_as_args(
186189
tmp_pathplus: PathPlus,
187190
advanced_file_regression: AdvancedFileRegressionFixture,

tests/test_importcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
pytest.param(("importlib", ), id="importlib"),
2020
pytest.param(("collections", ), id="collections"),
2121
pytest.param((), id="empty"),
22-
]
22+
],
2323
)
2424
@pytest.mark.parametrize("show", [True, False])
2525
def test_importchecker(
@@ -44,7 +44,7 @@ def test_importchecker(
4444
pytest.param(3.9, marks=only_version(3.9, reason="Output differs on Python 3.9")),
4545
pytest.param("3.10", marks=only_version("3.10", reason="Output differs on Python 3.10")),
4646
pytest.param("3.11", marks=min_version("3.11", reason="Output differs on Python 3.11")),
47-
]
47+
],
4848
)
4949
@pytest.mark.parametrize("show", [True, False])
5050
def test_importchecker_errors_show(

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_redirect_output_combine() -> None:
6969
[
7070
pytest.param(pyproject_content, id="pyproject.toml"),
7171
pytest.param(importcheck_content, id="importcheck.toml"),
72-
]
72+
],
7373
)
7474
def test_load_toml(
7575
content: List[str],

0 commit comments

Comments
 (0)