generated from felix-hilden/python-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (53 loc) · 1.27 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
[tox]
envlist = flake8,doc8,pydocstyle,coverage
[flake8]
max-line-length = 80
select = C,E,F,W,B,B9
ignore = E501
exclude = src/mold/plugins
per-file-ignores =
src/mold/__init__.py:F401
[doc8]
# Ignore for Windows development
ignore = D004
max-line-length = 80
ignore-path = docs/src/plugins.rst
[testenv]
description = Run test suite with pytest
extras = test
commands = pytest {posargs}
whitelist_externals = pytest
[testenv:test]
; Inherit everything from testenv
[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 src tests setup.py
[testenv:pydocstyle]
description = Check documentation string style
extras = checks
whitelist_externals = pydocstyle
commands = pydocstyle src
[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 mold tests setup.py
doc8 docs/src
pydocstyle src
[testenv:coverage]
description = Run test suite with code coverage
whitelist_externals = coverage
commands = coverage run
coverage report