Skip to content

Commit 513680e

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

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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: 5 additions & 5 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

@@ -48,9 +48,9 @@ def pytask_collect_task(
4848
) -> Task | None:
4949
"""Collect a task which is a function.
5050
51-
There is some discussion on how to detect functions in this `thread
52-
53-
<https://stackoverflow.com/q/624926/7523785>`_. :class:`types.FunctionType`
51+
There is some discussion on how to detect functions in this
52+
`thread <https://stackoverflow.com/q/624926/7523785>`_.
53+
:class: `types.FunctionType`
5454
does notdetect built-ins which is not possible anyway.
5555
5656
"""

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)

0 commit comments

Comments
 (0)