Skip to content

Commit a80a64c

Browse files
committed
chore: add pre-commit hook
1 parent 53e726d commit a80a64c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,19 @@ tag = true
5050
sign_tags = false
5151
tag_name = "v{new_version}"
5252
tag_message = "Bump version: {current_version} → {new_version}"
53-
allow_dirty = true
53+
allow_dirty = false
5454
commit = true
5555
message = "Bump version: {current_version} → {new_version}"
5656
moveable_tags = []
5757
commit_args = ""
5858
setup_hooks = []
59-
pre_commit_hooks = []
59+
pre_commit_hooks = [
60+
"uv sync",
61+
"git add uv.lock",
62+
"uv run --group lint ruff check .",
63+
"uv run --group lint ruff format --check .",
64+
"uv run --group lint --group test ty check",
65+
"uv run --group test pytest -v tests/ --cov=gameoflife/",
66+
]
6067
post_commit_hooks = []
6168
allow_shell_hooks = true

0 commit comments

Comments
 (0)