-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
47 lines (40 loc) · 786 Bytes
/
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
[tox]
minversion = 3.4.0
envlist = py{39.38.37.36}
skip_missing_interpreters = true
[pytest]
minversion = 6.0
addopts = -rflv
testpaths =
tests
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 89
max-complexity = 18
exclude =
.git
.tox
.pytest*
htmlcov
build
dist
*.pyc
.eggs
[testenv]
usedevelop = true
extras =
dev
commands =
python -m pytest --cov=flaskdoc --maxfail=2 --cov-report xml --cov-report term
[testenv:lint]
commands =
pre-commit run --all-files --show-diff-on-failure {posargs: }
[testenv:docs]
commands =
sphinx-build docs/source docs/build -b html
[testenv:coverage]
passenv = CODACY_PROJECT_TOKEN
deps =
requests
codacy-coverage
commands = python-codacy-coverage -r coverage.xml