Skip to content

Commit 225d0ee

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

8 files changed

+21
-19
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-stata to
11-
do \[...\]".
11+
do [...]".
1212

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

tests/conftest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import pytest
99
from click.testing import CliRunner
1010
from pytask import storage
11+
1112
from pytask_stata.config import STATA_COMMANDS
1213

1314
needs_stata = pytest.mark.skipif(
@@ -78,6 +79,6 @@ def invoke(self, *args, **kwargs):
7879
return super().invoke(*args, **kwargs)
7980

8081

81-
@pytest.fixture()
82+
@pytest.fixture
8283
def runner():
8384
return CustomCliRunner()

tests/test_collect.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
import pytest
66
from pytask import Mark
7+
78
from pytask_stata.collect import _parse_stata_mark
89
from pytask_stata.collect import stata
910

1011

11-
@pytest.mark.unit()
12+
@pytest.mark.unit
1213
@pytest.mark.parametrize(
1314
("args", "kwargs", "expectation", "expected"),
1415
[
@@ -32,7 +33,7 @@ def test_stata(args, kwargs, expectation, expected):
3233
assert options == expected
3334

3435

35-
@pytest.mark.unit()
36+
@pytest.mark.unit
3637
@pytest.mark.parametrize(
3738
("mark", "expectation", "expected"),
3839
[

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

tests/test_execute.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
from pytask import Task
1313
from pytask import build
1414
from pytask import cli
15+
1516
from pytask_stata.config import STATA_COMMANDS
1617
from pytask_stata.execute import pytask_execute_task_setup
17-
1818
from tests.conftest import needs_stata
1919

2020

21-
@pytest.mark.unit()
21+
@pytest.mark.unit
2222
@pytest.mark.parametrize(
2323
("stata", "expectation"),
2424
[(executable, does_not_raise()) for executable in STATA_COMMANDS]
@@ -42,7 +42,7 @@ def test_pytask_execute_task_setup_raise_error(stata, platform, expectation):
4242

4343

4444
@needs_stata
45-
@pytest.mark.end_to_end()
45+
@pytest.mark.end_to_end
4646
def test_run_do_file(runner, tmp_path):
4747
task_source = """
4848
import pytask
@@ -72,7 +72,7 @@ def task_run_do_file():
7272

7373

7474
@needs_stata
75-
@pytest.mark.end_to_end()
75+
@pytest.mark.end_to_end
7676
def test_run_do_file_w_task_decorator(runner, tmp_path):
7777
task_source = """
7878
import pytask
@@ -102,7 +102,7 @@ def run_do_file():
102102
assert tmp_path.joinpath("script.log").exists()
103103

104104

105-
@pytest.mark.end_to_end()
105+
@pytest.mark.end_to_end
106106
def test_raise_error_if_stata_is_not_found(tmp_path, monkeypatch):
107107
task_source = """
108108
from pytask import mark, task
@@ -128,7 +128,7 @@ def task_run_do_file():
128128

129129

130130
@needs_stata
131-
@pytest.mark.end_to_end()
131+
@pytest.mark.end_to_end
132132
def test_run_do_file_w_wrong_cmd_option(runner, tmp_path):
133133
"""Apparently, Stata simply discards wrong cmd options."""
134134
task_source = """
@@ -154,7 +154,7 @@ def task_run_do_file():
154154

155155

156156
@needs_stata
157-
@pytest.mark.end_to_end()
157+
@pytest.mark.end_to_end
158158
def test_run_do_file_by_passing_path(runner, tmp_path):
159159
"""Replicates example under "Command Line Arguments" in Readme."""
160160
task_source = """
@@ -180,7 +180,7 @@ def task_run_do_file():
180180

181181

182182
@needs_stata
183-
@pytest.mark.end_to_end()
183+
@pytest.mark.end_to_end
184184
def test_run_do_file_fails_with_multiple_marks(runner, tmp_path):
185185
task_source = """
186186
import pytask
@@ -201,7 +201,7 @@ def task_run_do_file():
201201

202202

203203
@needs_stata
204-
@pytest.mark.end_to_end()
204+
@pytest.mark.end_to_end
205205
def test_with_task_without_path(runner, tmp_path):
206206
task_source = """
207207
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
@@ -24,7 +24,7 @@
2424

2525

2626
@needs_stata
27-
@pytest.mark.end_to_end()
27+
@pytest.mark.end_to_end
2828
def test_parallel_parametrization_over_source_files_w_loop(runner, tmp_path):
2929
source = """
3030
import pytask
@@ -56,7 +56,7 @@ def task_execute_do_file():
5656

5757

5858
@needs_stata
59-
@pytest.mark.end_to_end()
59+
@pytest.mark.end_to_end
6060
def test_parallel_parametrization_over_source_file_w_loop(runner, tmp_path):
6161
source = """
6262
import pytask

tests/test_parametrize.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
@needs_stata
14-
@pytest.mark.end_to_end()
14+
@pytest.mark.end_to_end
1515
def test_parametrized_execution_of_do_file_w_loop(runner, tmp_path):
1616
source = """
1717
import pytask
@@ -41,7 +41,7 @@ def task_execute_do_file():
4141

4242

4343
@needs_stata
44-
@pytest.mark.end_to_end()
44+
@pytest.mark.end_to_end
4545
def test_parametrize_command_line_options_w_loop(runner, tmp_path):
4646
task_source = """
4747
import pytask

0 commit comments

Comments
 (0)