Skip to content

Commit 566a72f

Browse files
[pre-commit.ci] pre-commit autoupdate (#38)
1 parent e6dac9a commit 566a72f

15 files changed

+1304
-2233
lines changed

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ______________________________________________________________________
88
#### Is your feature request related to a problem?
99

1010
Provide a description of what the problem is, e.g. "I wish I could use pytask-julia to
11-
do \[...\]".
11+
do [...]".
1212

1313
#### Describe the solution you'd like
1414

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
- uses: actions/checkout@v4
4646
- if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest'
4747
uses: julia-actions/setup-julia@v2
48-
- uses: prefix-dev/setup-pixi@v0.7.0
48+
- uses: prefix-dev/setup-pixi@v0.8.14
4949
with:
50-
pixi-version: v0.22.0
50+
pixi-version: v0.50.1
5151
# cache: true
5252
environments: ${{ matrix.environment }}
5353

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-added-large-files
6-
args: ['--maxkb=100']
6+
args: ['--maxkb=25']
77
- id: check-case-conflict
88
- id: check-merge-conflict
99
- id: check-vcs-permalinks
@@ -25,16 +25,16 @@ repos:
2525
- id: python-use-type-annotations
2626
- id: text-unicode-replacement-char
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.4.4
28+
rev: v0.12.4
2929
hooks:
3030
- id: ruff
3131
- id: ruff-format
3232
- repo: https://github.com/dosisod/refurb
33-
rev: v2.0.0
33+
rev: v2.1.0
3434
hooks:
3535
- id: refurb
3636
- repo: https://github.com/executablebooks/mdformat
37-
rev: 0.7.17
37+
rev: 0.7.22
3838
hooks:
3939
- id: mdformat
4040
additional_dependencies: [
@@ -43,7 +43,7 @@ repos:
4343
]
4444
args: [--wrap, "88"]
4545
- repo: https://github.com/codespell-project/codespell
46-
rev: v2.2.6
46+
rev: v2.4.1
4747
hooks:
4848
- id: codespell
4949
- repo: meta

pixi.lock

Lines changed: 1264 additions & 2193 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ classifiers = [
99
"Programming Language :: Python :: 3 :: Only",
1010
]
1111
requires-python = ">=3.8"
12-
dependencies = ["click", "pluggy>=1.0.0", "pytask>=0.4.5"]
12+
dependencies = ["click", "pluggy>=1.0.0", "pytask>=0.4.5,<0.5.2"]
1313
dynamic = ["version"]
1414

1515
[[project.authors]]
@@ -77,7 +77,6 @@ disallow_untyped_defs = false
7777
ignore_errors = true
7878

7979
[tool.ruff]
80-
target-version = "py38"
8180
fix = true
8281
unsafe-fixes = true
8382

@@ -143,4 +142,4 @@ julia = ">=1.0.0"
143142

144143
[tool.pixi.feature.test.tasks]
145144
setup-julia = "julia --project=. --eval 'import Pkg; Pkg.instantiate()'"
146-
test = { cmd = "pytest --cov src --cov tests", depends_on = ["setup-julia"] }
145+
test = { cmd = "pytest --cov src --cov tests", depends-on = ["setup-julia"] }

src/pytask_julia/execute.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def pytask_execute_task_setup(task: PTask) -> None:
3636
_, _, serializer, _, _ = julia(**marks[0].kwargs)
3737

3838
serialized_node = task.depends_on["_serialized"]
39-
path: Path = serialized_node.value # type: ignore[attr-defined]
39+
path: Path = serialized_node.value # type: ignore[assignment]
4040
path.parent.mkdir(parents=True, exist_ok=True)
4141
kwargs = collect_keyword_arguments(task)
4242
serialize_keyword_arguments(serializer, path, kwargs)
@@ -45,13 +45,13 @@ def pytask_execute_task_setup(task: PTask) -> None:
4545
def collect_keyword_arguments(task: PTask) -> dict[str, Any]:
4646
"""Collect keyword arguments for function."""
4747
kwargs: dict[str, Any] = {
48-
**tree_map( # type: ignore[dict-item]
48+
**tree_map(
4949
lambda x: str(x.path) if isinstance(x, PPathNode) else str(x.value),
50-
task.depends_on,
50+
task.depends_on, # type: ignore[arg-type]
5151
),
52-
**tree_map( # type: ignore[dict-item]
52+
**tree_map(
5353
lambda x: str(x.path) if isinstance(x, PPathNode) else str(x.value),
54-
task.produces,
54+
task.produces, # type: ignore[arg-type]
5555
),
5656
}
5757
kwargs.pop("_script")

src/pytask_julia/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pytask import PTask
1212
from pytask import PTaskWithPath
1313

14-
__all__ = ["create_path_to_serialized", "serialize_keyword_arguments", "SERIALIZERS"]
14+
__all__ = ["SERIALIZERS", "create_path_to_serialized", "serialize_keyword_arguments"]
1515

1616
_HIDDEN_FOLDER = ".pytask/pytask-julia"
1717

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
parametrize_parse_code_serializer_suffix = pytest.mark.parametrize(
23-
"parse_config_code, serializer, suffix",
23+
("parse_config_code", "serializer", "suffix"),
2424
[
2525
("import JSON; config = JSON.parse(read(ARGS[1], String))", "json", ".json"),
2626
("import YAML; config = YAML.load_file(ARGS[1])", "yaml", ".yaml"),
@@ -87,6 +87,6 @@ def invoke(self, *args, **kwargs):
8787
return super().invoke(*args, **kwargs)
8888

8989

90-
@pytest.fixture()
90+
@pytest.fixture
9191
def runner():
9292
return CustomCliRunner()

tests/test_collect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
import pytest
66
from pytask import Mark
7+
78
from pytask_julia.collect import SERIALIZERS
89
from pytask_julia.collect import _parse_julia_mark
910
from pytask_julia.collect import _parse_project
10-
1111
from tests.conftest import ROOT
1212

1313

14-
@pytest.mark.unit()
14+
@pytest.mark.unit
1515
@pytest.mark.parametrize(
1616
(
1717
"mark",
@@ -91,7 +91,7 @@ def test_parse_julia_mark( # noqa: PLR0913
9191
assert out == expected
9292

9393

94-
@pytest.mark.unit()
94+
@pytest.mark.unit
9595
@pytest.mark.parametrize(
9696
("project", "root", "expected"),
9797
[

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pytask import build
55

66

7-
@pytest.mark.end_to_end()
7+
@pytest.mark.end_to_end
88
def test_marker_is_configured(tmp_path):
99
session = build(paths=tmp_path)
1010
assert "julia" in session.config["markers"]

0 commit comments

Comments
 (0)