forked from capn-freako/PyBERT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.08 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 = py36, py37, pylint, format, flake8, docs
skip_missing_interpreters = true
[testenv]
changedir = tests
deps =
pytest-cov
numpy
Cython
commands =
py.test --basetemp={envtmpdir} -vv --cov=pybert \
--cov-report=html --cov-report=term-missing
[testenv:pylint]
deps =
pylint
numpy
Cython
commands =
pylint --rcfile={toxinidir}/tox.ini pybert
[testenv:flake8]
deps =
flake8
numpy
Cython
commands =
flake8 pybert
[testenv:format]
skip_install = true
deps =
black
commands =
black -l 119 -t py37 {toxinidir}/pybert {toxinidir}/tests
[testenv:docs]
changedir = docs
deps =
sphinx
m2r
numpy
Cython
commands =
sphinx-build -j auto -b html source/ build/
[flake8]
; E501 line too long (80 > 79 characters)
; W503 line break before binary operator
ignore = W503,E501
max-line-length = 99
show-source = True
exclude = .tox, docs, venv
[MESSAGES CONTROL]
# C0301: Line too long
# C0103: Doesn't conform to snake_case naming style (invalid-name)
disable=C0301,C0103,wrong-import-position
max-line-length = 99