2018-01-25 08:00:28 +08:00
|
|
|
[tox]
|
|
|
|
envlist=
|
2019-01-16 08:06:18 +08:00
|
|
|
py{36,37,py3}-core
|
2018-01-25 08:00:28 +08:00
|
|
|
lint
|
2019-07-29 18:51:01 +08:00
|
|
|
docs
|
2018-01-25 08:00:28 +08:00
|
|
|
|
|
|
|
[isort]
|
|
|
|
combine_as_imports=True
|
|
|
|
force_sort_within_sections=True
|
|
|
|
include_trailing_comma=True
|
2018-06-05 08:40:58 +08:00
|
|
|
known_third_party=hypothesis,pytest
|
2018-01-25 08:00:28 +08:00
|
|
|
known_first_party=<MODULE_NAME>
|
|
|
|
line_length=21
|
|
|
|
multi_line_output=3
|
|
|
|
use_parentheses=True
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length= 100
|
|
|
|
exclude= venv*,.tox,docs,build
|
|
|
|
ignore=
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop=True
|
|
|
|
commands=
|
2018-06-05 06:36:02 +08:00
|
|
|
core: pytest {posargs:tests/core}
|
2019-07-29 18:51:01 +08:00
|
|
|
docs: make build-docs
|
2018-01-25 08:00:28 +08:00
|
|
|
basepython =
|
2019-07-29 18:51:01 +08:00
|
|
|
docs: python
|
2018-01-25 08:00:28 +08:00
|
|
|
py36: python3.6
|
2019-01-16 08:06:18 +08:00
|
|
|
py37: python3.7
|
2018-02-07 07:52:41 +08:00
|
|
|
pypy3: pypy3
|
2018-02-08 03:14:11 +08:00
|
|
|
extras=
|
|
|
|
test
|
2019-07-29 18:51:01 +08:00
|
|
|
docs: doc
|
2018-02-08 06:40:01 +08:00
|
|
|
whitelist_externals=make
|
2018-01-25 08:00:28 +08:00
|
|
|
|
|
|
|
[testenv:lint]
|
2018-02-08 03:26:47 +08:00
|
|
|
basepython=python
|
2018-01-25 08:00:28 +08:00
|
|
|
extras=lint
|
|
|
|
commands=
|
2019-04-26 21:59:33 +08:00
|
|
|
mypy -p {toxinidir}/<MODULE_NAME> --config-file {toxinidir}/mypy.ini
|
2018-06-05 06:36:35 +08:00
|
|
|
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
|
|
|
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
2019-01-25 04:57:17 +08:00
|
|
|
pydocstyle {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|