forked from jarun/buku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (58 loc) · 1.4 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
[tox]
envlist = python37,python38,python39,python310,pylint,flake8
[flake8]
max-line-length = 139
exclude =
.tox
build
venv
ignore =
# C901 func is too complex
C901,
# E126 continuation line over-indented for hanging indent
E126,
# E127 continuation line over-indented for visual indent
E127,
# E226 missing whitespace around arithmetic operator
E226,
# E231 missing whitespace after ','
E231,
# E302 expected 2 blank lines, found 1
E302,
# E305 expected 2 blank lines after class or function definition, found 1
E305,
# E731 do not assign a lambda expression, use a def
E731,
# W292 no newline at end of file
W292,
# W504 line break after binary operator
W504,
# E203 whitespace before :
E203,
[testenv]
usedevelop = true
deps = pytest
[testenv:python37]
extras = tests
commands =
pytest --cov buku -vv -m "not non_tox" {posargs}
[testenv:python38]
extras = tests
commands =
pytest --cov buku -vv -m "not non_tox" {posargs}
[testenv:python39]
extras = tests
commands =
pytest --cov buku -vv -m "not non_tox" {posargs}
[testenv:python310]
extras = tests
commands =
pytest --cov buku -vv -m "not non_tox" {posargs}
[testenv:pylint]
deps = pylint
commands =
pylint . --rc-file tests/.pylintrc --recursive yes --ignore-paths .tox/,build/,venv/
[testenv:flake8]
deps = flake8
commands =
python -m flake8