1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
[tox]
minversion = 1.6
envlist = pre-commit,py
[testenv]
deps =
flake8
commands = flake8 {posargs} flake8_docstrings.py
[testenv:release]
basepython = python3.9
deps =
twine >= 1.5.0
wheel
commands =
python setup.py sdist bdist_wheel
twine upload --skip-existing {posargs} dist/*
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[flake8]
ignore = D203
max_line_length = 79
exclude = .git,.tox,dist,docs,*egg
|