sdk-python/tox.ini

33 lines
688 B
INI

[tox]
envlist = py{38,39,310,311,312},lint
skipsdist = True
[testenv]
usedevelop = True
deps =
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/publish.txt
setenv =
PYTESTARGS = -v -s --tb=long --cov=cloudevents --cov-report term-missing --cov-fail-under=95
commands = pytest {env:PYTESTARGS} {posargs}
[testenv:reformat]
basepython = python3.11
deps =
black
isort
commands =
black .
isort cloudevents samples
[testenv:lint]
basepython = python3.11
deps =
black
isort
flake8
commands =
black --check .
isort -c cloudevents samples
flake8 cloudevents samples --ignore W503,E731 --extend-ignore E203 --max-line-length 88