Skip to content

Commit 1cee68f

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

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/pytask_environment/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def pytask_extend_command_line_interface(cli: click.Group) -> None:
1717
is_flag=True,
1818
default=None,
1919
help="Update the information on the environment stored in the database.",
20-
)
20+
),
2121
)
2222

2323

@@ -77,6 +77,6 @@ def _convert_truthy_or_falsy_to_bool(x: bool | str | None) -> bool:
7777
out = None
7878
else:
7979
raise ValueError(
80-
f"Input {x!r} is neither truthy (True, true, 1) or falsy (False, false, 0)."
80+
f"Input {x!r} is neither truthy (True, true, 1) or falsy (False, false, 0).",
8181
)
8282
return out

tests/test_logging.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pytask_environment.database import Environment
1212

1313

14-
@pytest.mark.end_to_end
14+
@pytest.mark.end_to_end()
1515
def test_existence_of_python_executable_in_db(tmp_path, runner):
1616
"""Test that the Python executable is stored in the database."""
1717
task_path = tmp_path.joinpath("task_dummy.py")
@@ -33,13 +33,13 @@ def test_existence_of_python_executable_in_db(tmp_path, runner):
3333
orm.delete(e for e in entity)
3434

3535

36-
@pytest.mark.end_to_end
36+
@pytest.mark.end_to_end()
3737
@pytest.mark.parametrize(
38-
"config_file, content",
38+
("config_file", "content"),
3939
[("pytask.ini", "[pytask]"), ("pyproject.toml", "[tool.pytask.ini_options]")],
4040
)
4141
def test_flow_when_python_version_has_changed(
42-
monkeypatch, tmp_path, runner, config_file, content
42+
monkeypatch, tmp_path, runner, config_file, content,
4343
):
4444
"""Test the whole use-case.
4545
@@ -97,17 +97,17 @@ def test_flow_when_python_version_has_changed(
9797
orm.delete(e for e in entity)
9898

9999

100-
@pytest.mark.end_to_end
100+
@pytest.mark.end_to_end()
101101
@pytest.mark.parametrize(
102-
"config_file, content",
102+
("config_file", "content"),
103103
[
104104
("pytask.ini", "[pytask]\ncheck_python_version = {}"),
105105
("pyproject.toml", "[tool.pytask.ini_options]\ncheck_python_version = {}"),
106106
],
107107
)
108108
@pytest.mark.parametrize("check_python_version, expected", [("true", 1), ("false", 0)])
109109
def test_python_version_changed(
110-
monkeypatch, tmp_path, runner, config_file, content, check_python_version, expected
110+
monkeypatch, tmp_path, runner, config_file, content, check_python_version, expected,
111111
):
112112
fake_version = (
113113
"2.7.8 | packaged by conda-forge | (default, Jul 31 2020, 01:53:57) "
@@ -135,17 +135,17 @@ def test_python_version_changed(
135135
orm.delete(e for e in entity)
136136

137137

138-
@pytest.mark.end_to_end
138+
@pytest.mark.end_to_end()
139139
@pytest.mark.parametrize(
140-
"config_file, content",
140+
("config_file", "content"),
141141
[
142142
("pytask.ini", "[pytask]\ncheck_environment = {}"),
143143
("pyproject.toml", "[tool.pytask.ini_options]\ncheck_environment = {}"),
144144
],
145145
)
146146
@pytest.mark.parametrize("check_python_version, expected", [("true", 1), ("false", 0)])
147147
def test_environment_changed(
148-
monkeypatch, tmp_path, runner, config_file, content, check_python_version, expected
148+
monkeypatch, tmp_path, runner, config_file, content, check_python_version, expected,
149149
):
150150
tmp_path.joinpath(config_file).write_text(content.format(check_python_version))
151151
source = "def task_dummy(): pass"

0 commit comments

Comments
 (0)