Skip to content

Commit 30073f0

Browse files
committed
Linting.
1 parent 0e3240c commit 30073f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coverage_pyver_pragma/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
Plugin for `Coverage.py <https://coverage.readthedocs.io/en/coverage-5.3/>`_
66
to selectively ignore branches depending on the Python version.
7-
"""
7+
""" # noqa: D400
88
#
99
# Copyright (c) 2020 Dominic Davis-Foster <[email protected]>
1010
#
@@ -139,7 +139,7 @@ class PyVerPragmaPlugin(coverage.CoveragePlugin):
139139
"""
140140
Plugin for `Coverage.py <https://coverage.readthedocs.io/en/coverage-5.3/>`_
141141
to selectively ignore branches depending on the Python version.
142-
"""
142+
""" # noqa: D400
143143

144144
def configure(self, config: Any) -> None:
145145
"""

tests/test_regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,5 +370,5 @@ def test_platforms_regex_spaces(
370370
]
371371
)
372372
def test_invalid_versions(version_tuple):
373-
with pytest.raises(ValueError):
373+
with pytest.raises(ValueError, match="Unknown Python version."):
374374
make_regexes(version_tuple, "Linux", "CPython")

0 commit comments

Comments
 (0)