Skip to content

Commit 52357e3

Browse files
[pre-commit.ci] pre-commit autoupdate (#52)
1 parent 2d4ba04 commit 52357e3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: debug-statements
1010
- id: end-of-file-fixer
1111
- repo: https://github.com/pre-commit/pygrep-hooks
12-
rev: v1.9.0 # Use the ref you want to point at
12+
rev: v1.10.0 # Use the ref you want to point at
1313
hooks:
1414
- id: python-check-blanket-noqa
1515
- id: python-check-mock-methods
@@ -36,11 +36,11 @@ repos:
3636
hooks:
3737
- id: black
3838
- repo: https://github.com/charliermarsh/ruff-pre-commit
39-
rev: v0.0.215
39+
rev: v0.0.223
4040
hooks:
4141
- id: ruff
4242
- repo: https://github.com/dosisod/refurb
43-
rev: v1.9.1
43+
rev: v1.10.0
4444
hooks:
4545
- id: refurb
4646
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_parallel/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@hookimpl
1313
def pytask_parse_config(config: dict[str, Any]) -> None:
1414
"""Parse the configuration."""
15-
if config["n_workers"] == "auto":
15+
if config["n_workers"] == "auto": # noqa: PLR2004
1616
config["n_workers"] = max(os.cpu_count() - 1, 1)
1717

1818
if (

0 commit comments

Comments
 (0)