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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
[tox]
envlist =
py38,
py39,
py310,
py311,
py312,
py313,
pep8,
[testenv]
deps =
pytest
commands = pytest {posargs}
[testenv:pep8]
deps =
black
flake8
mypy
commands =
black uritemplate tests setup.py
flake8 {posargs} uritemplate tests setup.py
mypy uritemplate tests
[testenv:release]
deps =
wheel
twine>=1.8.0
commands =
python setup.py -q sdist bdist_wheel
twine upload --skip-existing dist/*
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands =
pre-commit run {posargs:--all-files --show-diff-on-failure}
[testenv:docs]
deps = -rdocs/source/requirements.txt
commands =
doc8 docs/source
sphinx-build -E -W -c docs/source -b html docs/source docs/build/html
[testenv:serve-docs]
skip_install = true
changedir = docs/build/html
deps =
commands =
python -m http.server {posargs}
[flake8]
exclude = docs/
|