mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-06-30 02:13:06 +03:00
Run linting via pre-commit on CI
This commit is contained in:
parent
3f3148f88f
commit
095a2a56af
|
@ -27,5 +27,10 @@ sudo utility/install_os_dependencies.sh install
|
||||||
# Install Python deps
|
# Install Python deps
|
||||||
pip install -r requirements/local.txt
|
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
|
# run the project's tests
|
||||||
pytest
|
pytest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user