This repository has been archived by the owner on Dec 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
73 lines (60 loc) · 1.43 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
[tox]
; need no_attrs instead of nothing for tox-travis (see travis:env)
envlist = manifest,flake8,mypy,py{34,35,36,37},coverage-report,docs
[testenv]
changedir = {envtmpdir}
passenv =
CI
TRAVIS
TRAVIS_*
setenv =
; Every env has its own coverage file which is later merged in coverage-report.
; This needs to be overriden for codecov to work.
COVERAGE_FILE = {env:COVERAGE_FILE:{toxinidir}/.coverage.{envname}}
extras = tests
commands =
pytest {toxinidir}/tests --cov=antidote_attrs --cov-report term-missing:skip-covered --cov-config {toxinidir}/.coveragerc
[testenv:mypy]
changedir = {toxinidir}
skip_install = True
deps =
mypy
commands =
mypy src --ignore-missing
[testenv:flake8]
changedir = {toxinidir}
skip_install = True
deps =
flake8
commands =
flake8 src docs tests
[flake8]
ignore = F401,W503
; F401: X imported but unused (Pycharm does it better)
; W503: line break before binary operator (not best pratice)
exclude =
docs/_build
docs/_themes
max-line-length = 88
[testenv:docs]
changedir = docs
extras = docs
whitelist_externals = make
commands =
make doctest
make html
[testenv:coverage-report]
changedir = {toxinidir}
skip_install = True
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report
coverage html
[testenv:manifest]
changedir = {toxinidir}
skip_install = true
deps = check-manifest
commands = check-manifest