Files
tildes/git_hooks/pre-push
T
Chad Birch d170962204 Replace Pylama with Prospector
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.
2018-08-29 19:28:27 -06:00

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"