tox: add black (via pre-commit) to tests (#50927)
This commit is contained in:
parent
677a33555a
commit
5ea25c3e73
4
tox.ini
4
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py3-django111-pg-coverage-pylint, py3-django22-pg
|
envlist = py3-django111-pg-black-coverage-pylint, py3-django22-pg
|
||||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/chrono/{env:BRANCH_NAME:}
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/chrono/{env:BRANCH_NAME:}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -32,8 +32,10 @@ deps =
|
||||||
django22: django>=2.2,<2.3
|
django22: django>=2.2,<2.3
|
||||||
django111: djangorestframework<3.12.0
|
django111: djangorestframework<3.12.0
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
|
pre-commit
|
||||||
commands =
|
commands =
|
||||||
./getlasso3.sh
|
./getlasso3.sh
|
||||||
python3 setup.py compile_translations
|
python3 setup.py compile_translations
|
||||||
py.test {env:COVERAGE:} {posargs:tests/}
|
py.test {env:COVERAGE:} {posargs:tests/}
|
||||||
pylint: ./pylint.sh chrono/
|
pylint: ./pylint.sh chrono/
|
||||||
|
black: pre-commit run black --all-files --show-diff-on-failure
|
||||||
|
|
Loading…
Reference in New Issue