yunohost/tox.ini
Kayou 4a302dc786
add auto-format-code (#1142)
* add auto-format-code
* add github remote
* add GITHUB_TOKEN to the remove url
* select Yunohost:dev
* force push as it's only a code format
* pull before running black
* working on a clean directory
* pull before push? /o\
* do not clone single branch
* a last one?
* only on dev branch
2021-01-23 00:21:02 +01:00

13 lines
487 B
INI

[tox]
envlist = py37-{lint,invalidcode},py37-black-{run,check}
[testenv]
skip_install=True
deps =
py37-{lint,invalidcode}: flake8
py37-black-{run,check}: black
commands =
py37-lint: flake8 src doc data tests --ignore E402,E501 --exclude src/yunohost/vendor
py37-invalidcode: flake8 src data --exclude src/yunohost/tests,src/yunohost/vendor --select F
py37-black-check: black --check --diff src doc data tests
py37-black-run: black src doc data tests