Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Feb 1, 2024
1 parent c1f04f7 commit 17ee68f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def main(initialise_git_repository: str) -> int:
Returns:
The return code of the process
"""
if initialise_git_repository == "True":
try:
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def project_config() -> dict:
dict
dictionary with values for the cookiecutter template,
as defined in the cookiecutter.json
"""
return {
"github_username": "test-user",
Expand Down
1 change: 1 addition & 0 deletions tests/test_git_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_initialisation_of_git_repo(
as defined in the cookiecutter.json
git_init_cookiecutter_option: A string defined in cookiecutter.json,
which determines if git should be initialised or not
"""
# Run cookiecutter with initialise_git_repository
cookie = subprocess.run(
Expand Down
1 change: 1 addition & 0 deletions tests/test_package_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_package_generation(
Note that 'tmp_path' pytest fixture is preferred over 'tmpdir'
(see https://docs.pytest.org/en/7.3.x/how-to/tmp_path.html#the-tmpdir-and-tmpdir-factory-fixtures)
"""
# Run cookiecutter with project_slug set to the value in the project config
subprocess.run(
Expand Down

0 comments on commit 17ee68f

Please sign in to comment.