[tox] envlist = py3,flake8,check-manifest,black [testenv] deps = pytest webtest commands = {envpython} -m pytest {posargs:test} [testenv:flake8] basepython = python3 skip_install = true deps = flake8 >= 3.6 commands = flake8 [testenv:check-manifest] skip_install = true deps = check-manifest commands = {envpython} -m check_manifest {toxinidir} [testenv:mypy] deps = mypy >= 0.761 commands = mypy --ignore-missing-imports cubicweb_api [testenv:black] basepython = python3 skip_install = true deps = black >= 23.1 commands = black --check . [testenv:black-run] basepython = python3 skip_install = true deps = black >= 23.1 commands = black . [testenv:pypi-publish] basepython = python3 skip_install = true allowlist_externals = rm deps = twine passenv = TWINE_USERNAME TWINE_PASSWORD commands = rm -rf build dist .egg .egg-info python3 setup.py sdist bdist_wheel twine check dist/* twine upload --skip-existing dist/* [testenv:yamllint] skip_install = true deps = yamllint commands = yamllint . [testenv:release-new] basepython = python3 skip_install = true passenv = EDITOR deps = release-new commands = release-new {posargs:-r auto} [flake8] basepython = python3 ignore = W503, E203, E731, E231 max-line-length = 100 exclude = cubicweb_api/migration/*,test/data/*,.tox/*