mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 06:48:36 +02:00
Initial open-source release
This commit is contained in:
7
git_hooks/pre-commit
Executable file
7
git_hooks/pre-commit
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Pre-commit hook script that ensures mypy checks and tests pass
|
||||
|
||||
vagrant ssh -c ". activate \
|
||||
&& echo 'Checking mypy type annotations...' && mypy . \
|
||||
&& echo -n 'Running tests: ' && pytest -q"
|
||||
Reference in New Issue
Block a user