generated from felix-hilden/python-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
80 lines (66 loc) · 1.52 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
envlist = flake8,doc8,pydocstyle,coverage,docs
[flake8]
select = C,E,F,W,B,B9
ignore = E402,E501,W503
[pydocstyle]
ignore = D101,D102,D203,D212,D413
[pytest]
python_files = *.py
testpaths = tests
[coverage:run]
source = pyfactor
branch = True
command_line = -m pytest
[coverage:report]
precision = 1
show_missing = True
skip_covered = True
[doc8]
ignore = D002,D004
max-line-length = 80
[testenv]
description = Run test suite with pytest
extras = test
commands = pytest {posargs}
whitelist_externals = pytest
[testenv:test]
; Inherit everything from testenv
[testenv:docs]
description = Build Sphinx HTML documentation
extras = docs
changedir = docs
whitelist_externals = make
commands = make html
[testenv:doc8]
description = Check documentation .rst files
extras = checks
whitelist_externals = doc8
commands = doc8 docs/src
[testenv:flake8]
description = Check code style
extras = checks
whitelist_externals = flake8
commands = flake8 pyfactor tests setup.py
[testenv:pydocstyle]
description = Check documentation string style
extras = checks
whitelist_externals = pydocstyle
commands = pydocstyle pyfactor
[testenv:lint]
; Duplication needed https://github.com/tox-dev/tox/issues/647
description = Run all static checks
extras = checks
whitelist_externals =
doc8
flake8
pydocstyle
commands =
flake8 pyfactor tests setup.py
doc8 docs/src
pydocstyle pyfactor
[testenv:coverage]
description = Run test suite with code coverage
whitelist_externals = coverage
commands = coverage run
coverage report