forked from fabiommendes/cremilda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (50 loc) · 961 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
48
49
50
51
52
53
54
55
56
[tox]
skipsdist = True
usedevelop = True
envlist = py{36,37},flake8
[testenv]
install_command = pip install -r requirements.txt -U {opts} {packages}
basepython =
py36: python3.6
py37: python3.7
deps =
pytest
pytest-cov
mock
sidekick >= 0.3.1
click >= 6.6
commands =
pytest tests/ --cov
[testenv:flake8]
install_command = pip install {packages}
basepython =
python3.6
deps =
flake8 >= 3.5.0
commands =
flake8 src/
[flake8]
# E127: over indents for visual indent
# E501: line > 79 characters
# W503: line break before binary operator
# F821: undefined recursive classname inside class declaration
ignore = E127, W503, E501, F821
exclude =
.git,
.tox,
parsetab.py,
__pycache__,
docs/conf.py,
tasks.py,
build,
dist,
src/**/tests,
src/**/__init__.py
max-complexity = 8
[pytest]
env =
PYTHONPATH=src/:$PYTHONPATH
norecursedirs =
.tox
testpaths =
tests/