Skip to content

Commit ee5da71

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

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

hooks/post_gen_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def main() -> None:
3939
remove_file(project_path, ".readthedocs.yaml")
4040

4141
subprocess.run(
42-
("git", "init", "--initial-branch", "main"), check=True, capture_output=True
42+
("git", "init", "--initial-branch", "main"), check=True, capture_output=True,
4343
)
4444

4545
if "{{ cookiecutter.make_initial_commit }}" == "yes":
@@ -82,7 +82,7 @@ def main() -> None:
8282
else:
8383
warnings.warn(
8484
"conda environment could not be created since no conda or mamba "
85-
"executable was found."
85+
"executable was found.",
8686
)
8787

8888

hooks/pre_gen_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def main() -> None:
5252
if not re.match(PYTHONVERSION_REGEX, python_version):
5353
raise ValueError(
5454
EXCEPTION_MSG_PYTHONVERSION.format(
55-
min_python_version=PYTHONVERSION_MIN, python_version=python_version
56-
)
55+
min_python_version=PYTHONVERSION_MIN, python_version=python_version,
56+
),
5757
)
5858

5959

tests/test_cookie.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_bake_project(cookies):
1616
extra_context={
1717
"package_name": "pytask-matlab",
1818
"python_version": python_version,
19-
}
19+
},
2020
)
2121

2222
assert result.exit_code == 0
@@ -88,7 +88,7 @@ def test_check_conda_environment_creation_and_run_all_checks(cookies):
8888
"conda_environment_name": "__test__",
8989
"make_initial_commit": "yes",
9090
"create_conda_environment_at_finish": "yes",
91-
}
91+
},
9292
)
9393

9494
assert result.exit_code == 0
@@ -98,7 +98,7 @@ def test_check_conda_environment_creation_and_run_all_checks(cookies):
9898
# Switch branch before pre-commit because otherwise failure because on main
9999
# branch.
100100
subprocess.run(
101-
("git", "checkout", "-b", "test"), cwd=result.project_path, check=True
101+
("git", "checkout", "-b", "test"), cwd=result.project_path, check=True,
102102
)
103103

104104
# Check linting, but not on the first try since formatters fix stuff.

0 commit comments

Comments
 (0)