* add pip check/pip install to verify recommend config actually works
* add yamllint because too much yaml now
* add FAQ's
This commit is contained in:
Michel Oosterhof
2021-06-09 13:37:10 +08:00
committed by GitHub
parent 90386933e5
commit 2a68eacb69
12 changed files with 101 additions and 46 deletions

34
tox.ini
View File

@ -2,7 +2,7 @@
skipsdist = True
envlist = lint,docs,py36,py37,py38,py39,py310,mypy,pytype,pyre
deps = -r{toxinidir}/requirements.txt
skip_missing_interpreters=True
skip_missing_interpreters = True
[gh-actions]
python =
@ -10,7 +10,7 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.9: lint, docs, mypy, pytype, pyre
3.9: lint, docs, typing
pypy-3.7: pypy3
[travis]
@ -19,7 +19,7 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.9: lint, docs, mypy, pytype, pyre
3.9: lint, docs, typing
3.10: py310
pypy3: pypy3
@ -33,15 +33,20 @@ deps =
commands =
trial cowrie
[testenv:lint]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
allowlist_externals =
yamllint
commands =
flake8 --ignore E203,E501,W503 --count --statistics {toxinidir}/src
- twistedchecker -d W9002,W9202,W9204,W9208,W9402,C0301,C0103,W9001,C9302,W9401 {toxinidir}/src
yamllint {toxinidir}
basepython = python3.9
[testenv:docs]
setenv =
PYTHONPATH = {toxinidir}/src
@ -53,8 +58,9 @@ commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
basepython = python3.9
[testenv:mypy]
description = run Mypy (static type checker)
[testenv:typing]
description = run static type checkers
deps =
-r{toxinidir}/requirements.txt
@ -66,23 +72,5 @@ commands =
--config-file="{toxinidir}/mypy.ini" \
{tty:--pretty:} \
{posargs:src}
[testenv:pytype]
description = run Pytype (static type checker)
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
- pytype --keep-going --jobs auto
[testenv:pyre]
description = run Pyre (static type checker)
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
- pyre --noninteractive analyze