2020-02-07 04:06:57 +00:00
|
|
|
[tox]
|
|
|
|
envlist = py27, py36
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
commands =
|
|
|
|
flake8 pungi pungi_utils setup.py tests/*py
|
|
|
|
|
|
|
|
[testenv:py36]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
black
|
|
|
|
commands =
|
|
|
|
{[testenv]commands}
|
2020-03-05 08:51:06 +00:00
|
|
|
black --check --diff pungi pungi_utils setup.py tests --exclude tests/_composes
|
2020-02-07 04:06:57 +00:00
|
|
|
|
2016-02-23 12:03:11 +00:00
|
|
|
[flake8]
|
2020-02-07 04:06:57 +00:00
|
|
|
exclude = doc/*,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
2016-02-23 12:03:11 +00:00
|
|
|
filename = *.py
|
2020-02-03 03:50:06 +00:00
|
|
|
max-line-length = 88
|
2017-01-11 13:37:16 +00:00
|
|
|
|
|
|
|
# E402: module level import not at top of file
|
|
|
|
# H301: one import per line
|
|
|
|
# H306: imports not in alphabetical order
|
2017-06-14 11:21:31 +00:00
|
|
|
# E226: missing whitespace around arithmetic operator
|
|
|
|
# W503: line break occured before a binary operator
|
2020-01-22 10:02:22 +00:00
|
|
|
# E203: whitespace before ':'
|
2020-02-03 03:50:06 +00:00
|
|
|
ignore = E402,H301,H306,E226,W503,E203
|
2016-02-23 12:03:11 +00:00
|
|
|
|
|
|
|
[run]
|
|
|
|
omit = tests/*
|