mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Configuration tweaks fox tox/travis to use and check Black
This commit is contained in:
parent
581275aeed
commit
6f5daa0c38
3 changed files with 24 additions and 1 deletions
|
@ -6,6 +6,8 @@ matrix:
|
|||
env: TOXENV=py27
|
||||
- python: 2.7
|
||||
env: TOXENV=lint
|
||||
- python: 3.6
|
||||
env: TOXENV=format-check
|
||||
- python: 2.7
|
||||
env: TOXENV=docs
|
||||
|
||||
|
|
|
@ -1,2 +1,8 @@
|
|||
[flake8]
|
||||
ignore = E501,E128,E731,E722
|
||||
ignore =
|
||||
E501,
|
||||
E128,
|
||||
E731,
|
||||
E722,
|
||||
W503 # Black formatter conflict
|
||||
E203 # Black formatter conflict
|
||||
|
|
15
tox.ini
15
tox.ini
|
@ -28,6 +28,21 @@ deps = flake8
|
|||
skip_install = True
|
||||
usedevelop = False
|
||||
|
||||
|
||||
[testenv:format]
|
||||
basepython = python3
|
||||
commands = black {posargs} moulinette test
|
||||
deps = black
|
||||
skip_install = True
|
||||
usedevelop = False
|
||||
|
||||
[testenv:format-check]
|
||||
basepython = {[testenv:format]basepython}
|
||||
commands = black {posargs:--check --diff} moulinette test
|
||||
deps = {[testenv:format]deps}
|
||||
skip_install = {[testenv:format]skip_install}
|
||||
usedevelop = {[testenv:format]usedevelop}
|
||||
|
||||
[testenv:docs]
|
||||
usedevelop = True
|
||||
commands = python -m sphinx -W doc/ doc/_build
|
||||
|
|
Loading…
Reference in a new issue