diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef565a2..92701d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.17 + rev: v0.16.10 hooks: - id: ruff-check - id: ruff-format @@ -40,7 +40,7 @@ repos: ] args: [--wrap, "88"] - repo: https://github.com/crate-ci/typos - rev: v1 + rev: typos-dict-v0.14.2 hooks: - id: typos - repo: meta diff --git a/pyproject.toml b/pyproject.toml index 5ac4241..ccecab9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,7 @@ unsafe-fixes = true [tool.ruff.lint] extend-ignore = [ + "CPY001", # Copyright headers are not required. "ANN401", "COM812", # Comply with ruff-format "ISC001", # Comply with ruff-format diff --git a/tests/conftest.py b/tests/conftest.py index e3233eb..b34f102 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,14 +21,18 @@ ("parse_config_code", "serializer", "suffix"), [ ( - "library(jsonlite); args <- commandArgs(trailingOnly=TRUE); " - "config <- read_json(args[length(args)])", + ( + "library(jsonlite); args <- commandArgs(trailingOnly=TRUE); " + "config <- read_json(args[length(args)])" + ), "json", ".json", ), ( - "library(yaml); args <- commandArgs(trailingOnly=TRUE); " - "config <- read_yaml(args[length(args)])", + ( + "library(yaml); args <- commandArgs(trailingOnly=TRUE); " + "config <- read_yaml(args[length(args)])" + ), "yaml", ".yaml", ), diff --git a/tests/test_collect.py b/tests/test_collect.py index 967d311..c09b955 100644 --- a/tests/test_collect.py +++ b/tests/test_collect.py @@ -96,7 +96,7 @@ def test_r(args, kwargs, expectation, expected): ), ], ) -def test_parse_r_mark( # noqa: PLR0913 +def test_parse_r_mark( # noqa: PLR0913, PLR0917 mark, default_options, default_serializer, diff --git a/tests/test_execute.py b/tests/test_execute.py index b4f93bc..a7a3dd3 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -37,7 +37,7 @@ def test_pytask_execute_task_setup(monkeypatch): "depends_on", ['Path("in_1.txt")', '[Path("in_1.txt"), Path("in_2.txt")]'], ) -def test_run_r_script( # noqa: PLR0913 +def test_run_r_script( # noqa: PLR0913, PLR0917 runner, tmp_path, parse_config_code, serializer, suffix, depends_on ): task_source = f"""