mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-16 06:18:34 +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"
|
||||
8
git_hooks/pre-push
Executable file
8
git_hooks/pre-push
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Pre-push hook script that ensures mypy checks, style checks, and tests pass
|
||||
|
||||
vagrant ssh -c ". activate \
|
||||
&& echo 'Checking mypy type annotations...' && mypy . \
|
||||
&& echo -n 'Running tests: ' && pytest -q \
|
||||
&& echo 'Checking code style (takes a while)...' && pylama"
|
||||
Reference in New Issue
Block a user