2014-05-27 22:24:57 -07:00
|
|
|
[tox]
|
2021-12-18 14:42:50 -05:00
|
|
|
envlist = py37, py38, py39, py310
|
2014-05-27 22:24:57 -07:00
|
|
|
|
2021-12-18 15:10:09 -05:00
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
2021-12-18 15:14:13 -05:00
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
|
|
|
|
3.9: py39
|
|
|
|
|
3.10: py310
|
2021-12-18 15:10:09 -05:00
|
|
|
|
2014-05-27 22:24:57 -07:00
|
|
|
[testenv]
|
2016-04-07 17:41:54 -04:00
|
|
|
setenv =
|
|
|
|
|
PYTHONPATH = {toxinidir}:{toxinidir}/pydiscourse
|
2021-12-18 15:01:44 -05:00
|
|
|
commands = pytest {posargs} --cov=pydiscourse
|
|
|
|
|
deps =
|
|
|
|
|
-r{toxinidir}/requirements.txt
|
2016-04-08 13:56:41 -04:00
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
|
basepython=python
|
2016-04-08 13:59:18 -04:00
|
|
|
deps=
|
|
|
|
|
flake8
|
|
|
|
|
flake8_docstrings
|
2016-04-08 13:56:41 -04:00
|
|
|
commands=
|
2021-12-18 16:18:05 -05:00
|
|
|
flake8 src/pydiscourse --docstring-convention google --ignore D415
|
2016-04-08 13:56:41 -04:00
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
|
ignore = E126,E128
|
2021-12-18 16:18:05 -05:00
|
|
|
max-line-length = 119
|
2016-04-08 13:56:41 -04:00
|
|
|
exclude = .ropeproject
|
|
|
|
|
max-complexity = 10
|