Skip to content

Commit f26af61

Browse files
[pre-commit.ci] pre-commit autoupdate (#52)
1 parent fda6343 commit f26af61

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
args: [--branch, main]
1818
- id: trailing-whitespace
1919
- 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
2121
hooks:
2222
- id: python-check-blanket-noqa
2323
- id: python-check-mock-methods
@@ -44,16 +44,16 @@ repos:
4444
hooks:
4545
- id: black
4646
- repo: https://github.com/asottile/blacken-docs
47-
rev: v1.12.1
47+
rev: 1.13.0
4848
hooks:
4949
- id: blacken-docs
5050
additional_dependencies: [black]
5151
- repo: https://github.com/charliermarsh/ruff-pre-commit
52-
rev: v0.0.215
52+
rev: v0.0.223
5353
hooks:
5454
- id: ruff
5555
- repo: https://github.com/dosisod/refurb
56-
rev: v1.9.1
56+
rev: v1.10.0
5757
hooks:
5858
- id: refurb
5959
args: [--ignore, FURB126]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ extend-ignore = [
5151
"EM", # flake8-errmsg
5252
"ANN401", # flake8-annotate typing.Any
5353
"PD", # pandas-vet
54+
"COM812", # trailing comma missing, but black takes care of that
5455
]
5556

5657

5758
[tool.ruff.per-file-ignores]
58-
"tests/*" = ["D", "ANN"]
59+
"tests/*" = ["D", "ANN", "PLR2004"]
5960

6061

6162
[tool.ruff.pydocstyle]

src/pytask_latex/collect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def pytask_collect_task(
122122
)
123123

124124
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
126127
):
127128
raise ValueError(
128129
"The 'script' keyword of the @pytask.mark.latex decorator must point "

src/pytask_latex/parametrize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
@hookimpl
1111
def pytask_parametrize_kwarg_to_marker(obj: Any, kwargs: dict[str, Any]) -> None:
1212
"""Register kwargs as latex marker."""
13-
if callable(obj) and "latex" in kwargs:
13+
if callable(obj) and "latex" in kwargs: # noqa: PLR2004
1414
pytask.mark.latex(**kwargs.pop("latex"))(obj)

0 commit comments

Comments
 (0)