cowrie/tox.ini

89 lines
1.9 KiB
INI
Raw Normal View History

2019-05-12 15:40:45 +00:00
[tox]
skipsdist = True
2021-04-13 13:55:23 +00:00
envlist = lint,docs,py36,py37,py38,py39,py310,mypy,pytype,pyre
2019-05-12 15:40:45 +00:00
deps = -r{toxinidir}/requirements.txt
skip_missing_interpreters=True
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.9: lint, docs, mypy, pytype, pyre
pypy-3.7: pypy3
2019-05-12 15:40:45 +00:00
2019-05-12 17:38:49 +00:00
[travis]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.9: lint, docs, mypy, pytype, pyre
3.10: py310
pypy3: pypy3
2019-05-12 17:38:49 +00:00
2019-05-12 15:40:45 +00:00
[testenv]
setenv =
PYTHONPATH = {toxinidir}/src
deps =
-r{toxinidir}/requirements.txt
2020-05-15 03:04:52 +00:00
# libvirt-python==5.5.0
2019-05-12 15:40:45 +00:00
commands =
trial cowrie
[testenv:lint]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
flake8 --ignore E203,E501,W503 --count --application-import-names cowrie --statistics {toxinidir}/src
twistedchecker -d W9002,W9202,W9204,W9208,W9402,C0301 {toxinidir}/src || true
basepython = python3.9
2019-05-12 15:40:45 +00:00
[testenv:docs]
setenv =
PYTHONPATH = {toxinidir}/src
changedir = docs
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
basepython = python3.9
[testenv:mypy]
description = run Mypy (static type checker)
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
mypy \
--cache-dir="{toxworkdir}/mypy_cache" \
--config-file="{toxinidir}/mypy.ini" \
{tty:--pretty:} \
{posargs:src}
2021-04-13 13:55:23 +00:00
[testenv:pytype]
description = run Pytype (static type checker)
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
- pytype --keep-going --jobs auto
2021-04-13 13:55:23 +00:00
[testenv:pyre]
description = run Pyre (static type checker)
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
- pyre --noninteractive analyze