forked from scrapinghub/arche
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
executable file
·61 lines (52 loc) · 1 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
[tox]
envlist = py37, pep8, mypy
skipsdist = false
[testenv]
extras = tests
passenv =
PYTHONPATH
whitelist_externals = *
commands =
py.test --cov=src/arche --cov-config=tox.ini tests
[testenv:pep8]
extras = pep8tests
commands =
black ./ --check --diff
flake8 src/arche tests
[testenv:docs]
passenv = SH_APIKEY HOME
extras = docs
commands =
sphinx-build docs/source docs/_build -b linkcheck -b html
[testenv:mypy]
deps =
mypy
commands = mypy --ignore-missing-imports src/arche tests
[flake8]
select = C,E,F,W,I,D,B,B9
ignore = W503, E741, E501, E203, I101, F403, F405
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs
max-line-length = 88
import-order-style = google
application-import-names = flake8
[testenv:codecov]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
commands = codecov
[pytest]
python_paths = src
xfail_strict = true
mock_use_standalone_module = true
[coverage:run]
branch = true
[coverage:report]
fail_under = 81