Skip to content

Commit 8b2f860

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

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

coverage_pyver_pragma/grammar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ def __bool__(self) -> bool:
420420
(NOT, 1, opAssoc.RIGHT, LogicalNOT),
421421
(AND, 2, opAssoc.LEFT, LogicalAND),
422422
(OR, 2, opAssoc.LEFT, LogicalOR),
423-
]
424-
)
423+
],
424+
),
425425
)
426426
"""
427427
The :mod:`coverage_pyver_pragma` expression grammar.

tests/test_grammar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_grammar_dont_exclude(
3838

3939
assert not evaluate_exclude(f"<py{version[0]}{version[1]} and {implementation} and {plat}")
4040
assert not evaluate_exclude(
41-
f"<py{version[0]}{version[1]} and not {platform.python_implementation()} and {plat}"
41+
f"<py{version[0]}{version[1]} and not {platform.python_implementation()} and {plat}",
4242
)
4343
assert not evaluate_exclude(f"<py{version[0]}{version[1]} and ! {platform.python_implementation()} and {plat}")
4444
assert not evaluate_exclude(f"<py{version[0]}{version[1]} or not {implementation} and {plat}")
@@ -97,7 +97,7 @@ def test_grammar_current_platform_etc() -> None:
9797
("windows and", ParseBaseException),
9898
("!bpython and pypy", ParseBaseException),
9999
("<py38+", SyntaxError),
100-
]
100+
],
101101
)
102102
def test_bad_grammar(expression: str, exception: Type[Exception]) -> None:
103103
with pytest.raises(exception):

tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
pytest.param("3.8", marks=only_version(3.8, "Output differs on each version.")),
2424
pytest.param("3.9", marks=only_version(3.9, "Output differs on each version.")),
2525
pytest.param("3.10", marks=min_version("3.10", "Output differs on each version.")),
26-
]
26+
],
2727
)
2828
def test_plugin(
2929
tmp_pathplus: PathPlus,

0 commit comments

Comments
 (0)