File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 17
17
args : [--branch, main]
18
18
- id : trailing-whitespace
19
19
- repo : https://github.com/pre-commit/pygrep-hooks
20
- rev : v1.9 .0 # Use the ref you want to point at
20
+ rev : v1.10 .0 # Use the ref you want to point at
21
21
hooks :
22
22
- id : python-check-blanket-noqa
23
23
- id : python-check-mock-methods
@@ -44,16 +44,16 @@ repos:
44
44
hooks :
45
45
- id : black
46
46
- repo : https://github.com/asottile/blacken-docs
47
- rev : v1.12.1
47
+ rev : 1.13.0
48
48
hooks :
49
49
- id : blacken-docs
50
50
additional_dependencies : [black]
51
51
- repo : https://github.com/charliermarsh/ruff-pre-commit
52
- rev : v0.0.215
52
+ rev : v0.0.223
53
53
hooks :
54
54
- id : ruff
55
55
- repo : https://github.com/dosisod/refurb
56
- rev : v1.9.1
56
+ rev : v1.10.0
57
57
hooks :
58
58
- id : refurb
59
59
args : [--ignore, FURB126]
Original file line number Diff line number Diff line change @@ -51,11 +51,12 @@ extend-ignore = [
51
51
" EM" , # flake8-errmsg
52
52
" ANN401" , # flake8-annotate typing.Any
53
53
" PD" , # pandas-vet
54
+ " COM812" , # trailing comma missing, but black takes care of that
54
55
]
55
56
56
57
57
58
[tool .ruff .per-file-ignores ]
58
- "tests/*" = [" D" , " ANN" ]
59
+ "tests/*" = [" D" , " ANN" , " PLR2004 " ]
59
60
60
61
61
62
[tool .ruff .pydocstyle ]
Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ def pytask_collect_task(
122
122
)
123
123
124
124
if not (
125
- isinstance (script_node , FilePathNode ) and script_node .value .suffix == ".tex"
125
+ isinstance (script_node , FilePathNode )
126
+ and script_node .value .suffix == ".tex" # noqa: PLR2004
126
127
):
127
128
raise ValueError (
128
129
"The 'script' keyword of the @pytask.mark.latex decorator must point "
Original file line number Diff line number Diff line change 10
10
@hookimpl
11
11
def pytask_parametrize_kwarg_to_marker (obj : Any , kwargs : dict [str , Any ]) -> None :
12
12
"""Register kwargs as latex marker."""
13
- if callable (obj ) and "latex" in kwargs :
13
+ if callable (obj ) and "latex" in kwargs : # noqa: PLR2004
14
14
pytask .mark .latex (** kwargs .pop ("latex" ))(obj )
You can’t perform that action at this time.
0 commit comments