Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,7 +44,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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ unsafe-fixes = true

[tool.ruff.lint]
extend-ignore = [
"CPY001", # Copyright headers are not required.
"ANN401", # flake8-annotate typing.Any
"COM812", # Comply with ruff-format.
"ISC001", # Comply with ruff-format.
Expand Down
2 changes: 1 addition & 1 deletion src/pytask_julia/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def pytask_parse_config(config: dict[str, Any]) -> None:
config["julia_project"] = parse_relative_path(project, config["root"])


def _parse_value_or_whitespace_option(value: Any) -> None | list[str]:
def _parse_value_or_whitespace_option(value: Any) -> list[str] | None:
"""Parse option which can hold a single value or values separated by new lines."""
if value is None:
return None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
),
],
)
def test_parse_julia_mark( # noqa: PLR0913
def test_parse_julia_mark( # noqa: PLR0913, PLR0917
mark,
default_options,
default_serializer,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_pytask_execute_task_setup_missing_julia(monkeypatch):
"depends_on",
['Path("in_1.txt")', '[Path("in_1.txt"), Path("in_2.txt")]'],
)
def test_run_jl_script( # noqa: PLR0913
def test_run_jl_script( # noqa: PLR0913, PLR0917
runner,
tmp_path,
parse_config_code,
Expand Down Expand Up @@ -214,7 +214,7 @@ def task_run_jl_script(produces=Path("out.txt")):
@needs_julia
@pytest.mark.parametrize("n_threads", [2, 3])
@parametrize_parse_code_serializer_suffix
def test_check_passing_cmd_line_options( # noqa: PLR0913
def test_check_passing_cmd_line_options( # noqa: PLR0913, PLR0917
runner,
tmp_path,
n_threads,
Expand Down Expand Up @@ -258,7 +258,7 @@ def task_run_jl_script(produces=Path("out.txt")):
)
@parametrize_parse_code_serializer_suffix
@pytest.mark.parametrize("path", [ROOT, "relative_from_config"])
def test_run_jl_script_w_environment_in_config( # noqa: PLR0913
def test_run_jl_script_w_environment_in_config( # noqa: PLR0913, PLR0917
runner,
tmp_path,
parse_config_code,
Expand Down
Loading