File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ ignore = [
110
110
" D105" ,
111
111
" D203" ,
112
112
" D213" ,
113
+ # Allow functions to take as many arguments as they want.
114
+ " PLR0913" ,
113
115
# Allow 'assert' in tests as it is the standard for pytest.
114
116
# Also, allow 'assert' in other code as it is the standard for Python type hint
115
117
# narrowing - see
Original file line number Diff line number Diff line change @@ -70,7 +70,10 @@ def test_pyfiles_file_no_dice(tmp_path: Path) -> None:
70
70
not_python_file = tmp_path / "example"
71
71
not_python_file .touch ()
72
72
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
+ ):
74
77
list (common .pyfiles (root = not_python_file ))
75
78
76
79
You can’t perform that action at this time.
0 commit comments