forked from annetutil/annet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (46 loc) · 1.33 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
[tox]
envlist = ci
skipsdist = True
[testenv:ci]
envlogdir = .tox-logs
commands =
python tests/ci_indent.py annet/rulebook/texts
flake8 annet annet_generators
pytest -p no:warnings --cov --cov-report xml:coverage.xml -sv --benchmark-skip tests
ignore_errors = True
deps =
-rrequirements-test.txt
-rrequirements.txt
[testenv:benchmark]
commands = py.test -vv --benchmark-only --benchmark-sort=max tests
deps =
-rrequirements-test.txt
-rrequirements.txt
[testenv:mypy_ignore]
description = mypy info
ignore_errors = True
deps =
mypy
-rrequirements-mypy.txt
commands =
- python3 -m mypy --config-file mypy_strict.ini .
[testenv:mypy]
description = mypy
deps =
mypy
-rrequirements-mypy.txt
commands =
python3 -m mypy --config-file mypy.ini .
[flake8]
# W503 line break before binary operator
# W504 line break after binary operator
# E125 continuation line with same indent as next logical line
# E241 multiple spaces after
# E272 multiple spaces before keyword
# E126 continuation line over-indented for hanging indent
# E121 continuation line under-indented for hanging indent
# F401 imported but unused (already checked by pylint)
# E402 module level import not at top of file (already checked by pylint)
ignore = W503,W504,E125,E241,E272,E126,E121,F401,E402
max-line-length = 140
inline-quotes = "