diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56f6a44..27786df 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: debug-statements - id: end-of-file-fixer - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 # Use the ref you want to point at + rev: v1.10.0 # Use the ref you want to point at hooks: - id: python-check-blanket-noqa - id: python-check-mock-methods @@ -36,11 +36,11 @@ repos: hooks: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.215 + rev: v0.0.223 hooks: - id: ruff - repo: https://github.com/dosisod/refurb - rev: v1.9.1 + rev: v1.10.0 hooks: - id: refurb args: [--ignore, FURB126] diff --git a/pyproject.toml b/pyproject.toml index 3393b3b..6f3d7ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,11 +51,12 @@ extend-ignore = [ "EM", # flake8-errmsg "ANN401", # flake8-annotate typing.Any "PD", # pandas-vet + "COM812", # trailing comma missing, but black takes care of that ] [tool.ruff.per-file-ignores] -"tests/*" = ["D", "ANN"] +"tests/*" = ["D", "ANN", "PLR2004"] [tool.ruff.pydocstyle] diff --git a/src/pytask_parallel/config.py b/src/pytask_parallel/config.py index 6c4af23..632026d 100644 --- a/src/pytask_parallel/config.py +++ b/src/pytask_parallel/config.py @@ -12,7 +12,7 @@ @hookimpl def pytask_parse_config(config: dict[str, Any]) -> None: """Parse the configuration.""" - if config["n_workers"] == "auto": + if config["n_workers"] == "auto": # noqa: PLR2004 config["n_workers"] = max(os.cpu_count() - 1, 1) if (