Project

General

Profile

0001-tox-add-black-via-pre-commit-to-tests.patch

Frédéric Péters, 05 February 2021 05:35 PM

Download (971 Bytes)

View differences:

Subject: [PATCH 1/3] tox: add black (via pre-commit) to tests

 tox.ini | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tox.ini
1 1
[tox]
2 2
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
3
envlist = py3-django111-pylint-coverage, py3-django22
3
envlist = py3-django111-black-pylint-coverage, py3-django22
4 4

  
5 5
[testenv]
6 6
sitepackages = true
......
42 42
    pyproj
43 43
    pylint
44 44
    Quixote>=3.0,<3.2
45
    pre-commit
45 46
commands =
46 47
    py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
47 48
    pylint: ./pylint.sh wcs/
49
    black: pre-commit run black --all-files --show-diff-on-failure
48
-