mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-26 19:14:29 +02:00
d170962204
Pylama is no longer maintained, and has been gradually getting slower and slower, as well as being incompatible with Python 3.7 and newer versions of astroid and pylint. This replaces it with Prospector, which is being maintained by the same group as pylint and some other code quality tools.
10 lines
385 B
Bash
Executable File
10 lines
385 B
Bash
Executable File
#!/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 'Checking if Black would reformat any code...' && black --check . \
|
|
&& echo -n 'Running tests: ' && pytest -q \
|
|
&& echo 'Checking code style fully (takes a while)...' && prospector -M"
|