Skip to content

Commit 587a4f6

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

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

setup.cfg

Lines changed: 2 additions & 2 deletions
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
@@ -26,7 +26,7 @@ packages = find:
2626
install_requires =
2727
pybaum>=0.1.1
2828
pytask>=0.3
29-
python_requires = >=3.7
29+
python_requires = >=3.8
3030
include_package_data = True
3131
package_dir = =src
3232
zip_safe = False

src/pytask_julia/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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"

src/pytask_julia/shared.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def julia(
1616
options: str | Iterable[str] | None = None,
1717
serializer: Callable[..., str] | str | None = None,
1818
suffix: str | None = None,
19-
project: str | Path = None,
19+
project: str | Path | None = None,
2020
) -> tuple[
2121
str | Path | None,
2222
str | Iterable[str] | None,
23-
str | Callable[..., str] | str | None,
23+
str | Callable[..., str] | None,
2424
str | None,
2525
str | Path | None,
2626
]:

0 commit comments

Comments
 (0)