Run linting via pre-commit on CI

This commit is contained in:
Bruno Alla 2021-03-02 21:50:57 +00:00
parent 3f3148f88f
commit 095a2a56af

View File

@ -27,5 +27,10 @@ sudo utility/install_os_dependencies.sh install
# Install Python deps
pip install -r requirements/local.txt
# Lint by running pre-commit on all files
git init
git add .
pre-commit run --show-diff-on-failure -a
# run the project's tests
pytest