-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (53 loc) · 1.65 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
isolated_build = true
envlist = py{27,34,35,36,37}-{jwt,fernet}, style, docs
[testenv]
description = Run tests for the {envname} environment
whitelist_externals = poetry
commands_pre =
poetry install
jwt: poetry install -E jwt
fernet: poetry install -E fernet
commands =
poetry run pytest -v tests
[testenv:style]
description = Ensure good code and documentation style
skip_install = true
commands_pre =
poetry install
# These cannot be added as project dependencies as they no longer support 2.7
poetry run pip install -q black pylint
commands =
poetry run black --check falcon_epdb tests
poetry run flake8 falcon_epdb tests
poetry run pylint falcon_epdb
poetry run pylint --disable duplicate-code tests
poetry run pydocstyle falcon_epdb tests
[testenv:docs]
description = Generate the RTD documentation and validate that README.rst is valid for PyPI
skip_install = true
commands =
poetry run sphinx-build -b html docs docs/_build
poetry build
poetry run twine check dist/*.whl
# tox-travis glue to ensure that some jobs only run against one environment
# See .travis.yml
[travis]
python =
3.6: py36, style, docs
# See pytest.ini for pytest-cov invocation parameters
[coverage:run]
branch = true
[coverage:report]
# fail_under = 67
show_missing = true
[coverage:html]
title = falcon-epdb coverage report
[flake8]
max-line-length = 100
[pydocstyle]
add-ignore = D107