Skip to content

Commit 1da9a0b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 99c5460 commit 1da9a0b

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ url = https://github.com/pytask-dev/pytask-julia
77
author = Tobias Raabe
88
author_email = raabe@posteo.de
99
license = MIT
10-
license_file = LICENSE
10+
license_files = LICENSE
1111
platforms = any
1212
classifiers =
1313
Development Status :: 4 - Beta

src/pytask_julia/collect.py

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

2525

2626
_SEPARATOR: str = "--"
27-
"""str: Separates options for the Julia executable and arguments to the file."""
27+
"""Str: Separates options for the Julia executable and arguments to the file."""
2828

2929

3030
def run_jl_script(
@@ -34,7 +34,7 @@ def run_jl_script(
3434
project: list[str],
3535
) -> None:
3636
"""Run a Julia script."""
37-
cmd = ["julia"] + options + project + [_SEPARATOR, str(script), str(serialized)]
37+
cmd = ["julia", *options, *project, _SEPARATOR, str(script), str(serialized)]
3838
print("Executing " + " ".join(cmd) + ".") # noqa: T201
3939
subprocess.run(cmd, check=True)
4040

src/pytask_julia/parametrize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
@hookimpl
1111
def pytask_parametrize_kwarg_to_marker(obj: Any, kwargs: dict[str, Any]) -> None:
1212
"""Attach parametrized Julia arguments to the function with a marker."""
13-
if callable(obj) and "julia" in kwargs: # noqa: PLR2004
13+
if callable(obj) and "julia" in kwargs:
1414
pytask.mark.julia(**kwargs.pop("julia"))(obj)

src/pytask_julia/plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
"""Register hook specifications and implementations."""
22
from __future__ import annotations
33

4-
from pluggy import PluginManager
54
from pytask import hookimpl
65
from pytask_julia import collect
76
from pytask_julia import config
87
from pytask_julia import execute
98
from pytask_julia import parametrize
9+
from typing import TYPE_CHECKING
10+
11+
if TYPE_CHECKING:
12+
from pluggy import PluginManager
1013

1114

1215
@hookimpl

src/pytask_julia/serialization.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
from __future__ import annotations
33

44
import json
5-
from pathlib import Path
65
from typing import Any
7-
from typing import Callable
6+
from typing import Callable, TYPE_CHECKING
87

9-
from pytask import Task
8+
9+
if TYPE_CHECKING:
10+
from pytask import Task
11+
from pathlib import Path
1012

1113

1214
_HIDDEN_FOLDER = ".pytask"

0 commit comments

Comments
 (0)