Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ^{{cookiecutter.project_slug}}/|^tests/data/test_package_generation/
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
rev: v0.12.1
hooks:
- id: ruff
args:
Expand Down
6 changes: 3 additions & 3 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ def main(initialise_git_repository: str, deploy_docs_to_github_pages: str) -> in
if initialise_git_repository == "True":
try:
# initialise git repo
subprocess.run( # noqa: S603
subprocess.run(
[ # noqa: S607
"git",
"init",
],
check=True,
)
# old versions of git still default to `master`
subprocess.run( # noqa: S603
subprocess.run(
[ # noqa: S607
"git",
"branch",
Expand All @@ -51,7 +51,7 @@ def main(initialise_git_repository: str, deploy_docs_to_github_pages: str) -> in

try:
# check for presence of GitHub CLI
subprocess.run( # noqa: S603
subprocess.run(
[ # noqa: S607
"gh",
"--version",
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_package_generation/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
rev: v0.12.1
hooks:
- id: ruff
- id: ruff-format
Expand Down
2 changes: 1 addition & 1 deletion tests/test_git_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_initialisation_of_git_repo(

try:
# check for presence of GitHub CLI
subprocess.run( # noqa: S603
subprocess.run(
[ # noqa: S607
"gh",
"--version",
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
rev: v0.12.1
hooks:
- id: ruff
- id: ruff-format
Expand Down
Loading