mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 09:52:36 +02:00
Add black in the tox matrix.
This commit is contained in:
parent
f260a2c9e7
commit
dc05d1cd17
2 changed files with 13 additions and 3 deletions
|
@ -3,3 +3,4 @@ tox
|
||||||
pytest
|
pytest
|
||||||
flake8
|
flake8
|
||||||
Flask-Testing
|
Flask-Testing
|
||||||
|
black
|
||||||
|
|
15
tox.ini
15
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py37,py36,py35,py34,docs,lint
|
envlist = py37,py36,py35,docs,flake8,black
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -21,7 +21,13 @@ deps =
|
||||||
-rdocs/requirements.txt
|
-rdocs/requirements.txt
|
||||||
changedir = {toxinidir}
|
changedir = {toxinidir}
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:black]
|
||||||
|
commands = black --check --target-version=py34 .
|
||||||
|
deps =
|
||||||
|
-rdev-requirements.txt
|
||||||
|
changedir = {toxinidir}
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
commands = flake8 ihatemoney
|
commands = flake8 ihatemoney
|
||||||
deps =
|
deps =
|
||||||
-rdev-requirements.txt
|
-rdev-requirements.txt
|
||||||
|
@ -30,9 +36,12 @@ changedir = {toxinidir}
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = migrations
|
exclude = migrations
|
||||||
max_line_length = 100
|
max_line_length = 100
|
||||||
|
extend-ignore =
|
||||||
|
# See https://github.com/PyCQA/pycodestyle/issues/373
|
||||||
|
E203,
|
||||||
|
|
||||||
[travis]
|
[travis]
|
||||||
python =
|
python =
|
||||||
3.5: py35
|
3.5: py35
|
||||||
3.6: py36, docs, lint
|
3.6: py36, docs, black, flake8
|
||||||
3.7: py37
|
3.7: py37
|
||||||
|
|
Loading…
Reference in a new issue