Skip to content

Commit eacfaf8

Browse files
committed
Fix a bunch of ruff errors
1 parent 162a15d commit eacfaf8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ ignore = [
110110
"D105",
111111
"D203",
112112
"D213",
113+
# Allow functions to take as many arguments as they want.
114+
"PLR0913",
113115
# Allow 'assert' in tests as it is the standard for pytest.
114116
# Also, allow 'assert' in other code as it is the standard for Python type hint
115117
# narrowing - see

tests/test_common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def test_pyfiles_file_no_dice(tmp_path: Path) -> None:
7070
not_python_file = tmp_path / "example"
7171
not_python_file.touch()
7272

73-
with pytest.raises(ValueError):
73+
with pytest.raises(
74+
expected_exception=ValueError,
75+
match=f"{not_python_file} is not a python file or directory",
76+
):
7477
list(common.pyfiles(root=not_python_file))
7578

7679

0 commit comments

Comments
 (0)