-
Notifications
You must be signed in to change notification settings - Fork 37
/
tox.ini
55 lines (41 loc) · 1.03 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
[tox]
envlist = py36, py37, py38, py39, coverage, check-manifest, flake8
[testenv]
# install the `optional` requirements
extras = optional
# this corresponds to a `pip install -e`
usedevelop = true
deps =
pytest
pytest-console-scripts
commands = pytest {posargs}
[testenv:coverage]
basepython = python3
deps =
pytest
pytest-cov
pytest-console-scripts
commands = pytest --cov-report term-missing --cov-report html --cov
[testenv:flake8]
basepython = python3
deps = flake8
commands =
# ignore max complexity and line break after binary operator
flake8 tnefparse/ tests/ setup.py --ignore=C901,W504
# check max complexity, but do not enforce it
flake8 tnefparse/ tests/ setup.py --count --exit-zero --max-complexity=10 --statistics
[testenv:check-manifest]
basepython = python3
deps =
check-manifest
commands =
check-manifest
[testenv:mypy]
deps =
mypy
commands =
# do not lint tests yet
mypy tnefparse {posargs}
[flake8]
# The GitHub editor is 127 chars wide.
max-line-length = 127