Skip to content

Commit f5034d5

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

10 files changed

+24
-23
lines changed

.github/ISSUE_TEMPLATE/enhancement.md

+1-1
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

src/pytask_julia/serialization.py

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -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

+3-3
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

+1-1
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"]

tests/test_execute.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
from pytask import Task
1212
from pytask import build
1313
from pytask import cli
14-
from pytask_julia.execute import pytask_execute_task_setup
1514

15+
from pytask_julia.execute import pytask_execute_task_setup
1616
from tests.conftest import ROOT
1717
from tests.conftest import needs_julia
1818
from tests.conftest import parametrize_parse_code_serializer_suffix
1919

2020

21-
@pytest.mark.unit()
21+
@pytest.mark.unit
2222
def test_pytask_execute_task_setup_missing_julia(monkeypatch):
2323
"""Make sure that the task setup raises errors."""
2424
# Act like julia is installed since we do not test this.
@@ -37,7 +37,7 @@ def test_pytask_execute_task_setup_missing_julia(monkeypatch):
3737

3838

3939
@needs_julia
40-
@pytest.mark.end_to_end()
40+
@pytest.mark.end_to_end
4141
@parametrize_parse_code_serializer_suffix
4242
@pytest.mark.parametrize("depends_on", ["'in_1.txt'", "['in_1.txt', 'in_2.txt']"])
4343
def test_run_jl_script( # noqa: PLR0913
@@ -86,7 +86,7 @@ def task_run_jl_script():
8686

8787

8888
@needs_julia
89-
@pytest.mark.end_to_end()
89+
@pytest.mark.end_to_end
9090
@parametrize_parse_code_serializer_suffix
9191
def test_run_jl_script_w_task_decorator(
9292
runner, tmp_path, parse_config_code, serializer, suffix
@@ -123,7 +123,7 @@ def run_jl_script():
123123

124124

125125
@needs_julia
126-
@pytest.mark.end_to_end()
126+
@pytest.mark.end_to_end
127127
@parametrize_parse_code_serializer_suffix
128128
def test_raise_error_if_julia_is_not_found(
129129
tmp_path,
@@ -169,7 +169,7 @@ def task_run_jl_script():
169169

170170

171171
@needs_julia
172-
@pytest.mark.end_to_end()
172+
@pytest.mark.end_to_end
173173
@parametrize_parse_code_serializer_suffix
174174
def test_run_jl_script_w_wrong_cmd_option(
175175
runner,
@@ -208,7 +208,7 @@ def task_run_jl_script():
208208

209209

210210
@needs_julia
211-
@pytest.mark.end_to_end()
211+
@pytest.mark.end_to_end
212212
@pytest.mark.parametrize("n_threads", [2, 3])
213213
@parametrize_parse_code_serializer_suffix
214214
def test_check_passing_cmd_line_options( # noqa: PLR0913
@@ -249,7 +249,7 @@ def task_run_jl_script():
249249

250250

251251
@needs_julia
252-
@pytest.mark.end_to_end()
252+
@pytest.mark.end_to_end
253253
@pytest.mark.xfail(
254254
condition=sys.platform == "win32" and os.environ.get("CI") == "true",
255255
reason="Test folder and repo are on different drives causing relpath to fail.",
@@ -303,7 +303,7 @@ def task_run_jl_script():
303303

304304

305305
@needs_julia
306-
@pytest.mark.end_to_end()
306+
@pytest.mark.end_to_end
307307
@pytest.mark.xfail(
308308
condition=sys.platform == "win32" and os.environ.get("CI") == "true",
309309
reason="Test folder and repo are on different drives causing relpath to fail.",
@@ -349,7 +349,7 @@ def task_run_jl_script():
349349

350350

351351
@needs_julia
352-
@pytest.mark.end_to_end()
352+
@pytest.mark.end_to_end
353353
def test_run_jl_script_w_custom_serializer(runner, tmp_path):
354354
task_source = f"""
355355
import pytask
@@ -382,7 +382,7 @@ def task_run_jl_script():
382382

383383

384384
@needs_julia
385-
@pytest.mark.end_to_end()
385+
@pytest.mark.end_to_end
386386
def test_run_jl_script_fails_w_multiple_markers(runner, tmp_path):
387387
task_source = """
388388
import pytask

tests/test_normal_execution_w_plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pytask import cli
1010

1111

12-
@pytest.mark.end_to_end()
12+
@pytest.mark.end_to_end
1313
@pytest.mark.parametrize(
1414
"dependencies",
1515
[(), ("in.txt",), ("in_1.txt", "in_2.txt")],

tests/test_parallel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
@needs_julia
30-
@pytest.mark.end_to_end()
30+
@pytest.mark.end_to_end
3131
@parametrize_parse_code_serializer_suffix
3232
def test_parallel_parametrization_over_source_files_w_loop(
3333
runner,
@@ -75,7 +75,7 @@ def task_execute_julia():
7575

7676

7777
@needs_julia
78-
@pytest.mark.end_to_end()
78+
@pytest.mark.end_to_end
7979
@parametrize_parse_code_serializer_suffix
8080
def test_parallel_parametrization_over_source_file_w_loop(
8181
runner,

tests/test_parametrize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
@needs_julia
15-
@pytest.mark.end_to_end()
15+
@pytest.mark.end_to_end
1616
@parametrize_parse_code_serializer_suffix
1717
def test_parametrized_execution_of_jl_script_w_loop(
1818
runner,

tests/test_shared.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
from contextlib import ExitStack as does_not_raise # noqa: N813
44

55
import pytest
6+
67
from pytask_julia.shared import julia
78

89

9-
@pytest.mark.unit()
10+
@pytest.mark.unit
1011
@pytest.mark.parametrize(
1112
("args", "kwargs", "expectation", "expected"),
1213
[

0 commit comments

Comments
 (0)