-
Notifications
You must be signed in to change notification settings - Fork 34
/
tox.ini
94 lines (87 loc) · 1.32 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[tox]
requires =
tox>=4
env_list = clean, py{37,38,39,310,311}, pypy, stats, lint
skipsdist = True
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-3.7: pypy
[testenv]
description = run unit tests
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
pytest-cov>=4.0.0
commands =
pytest --cov-config .coveragerc --cov-append --cov=trakt
[testenv:clean]
skip_install = true
deps =
coverage
commands =
coverage erase
[testenv:docs]
commands = sphinx-build -a -b html docs build/sphinx
[testenv:lint]
basepython = python3.10
skip_install = true
deps =
flake8
flake8-bugbear>=17.3.0
flake8-docstrings>=0.2.7
flake8-import-order>=0.18
flake8-import-order-fuzeman>=1.8.1
flake8-quotes>=0.9.0
commands =
flake8
[testenv:stats]
skip_install = true
deps =
coverage
commands =
coverage report -m
coverage html
coverage lcov
[flake8]
format=pylint
statistics = True
ignore =
D100,
D101,
D102,
D103,
D104,
D105,
D107,
D202,
FI50,
FI51,
FI12,
FI53,
FI14,FI54,
FI15,FI55,
FI16,
FI17,
FI18
exclude =
.git,
.tox,
.venv,
doc/*,
lib/python*,
tools,
build,
*egg
show-source = True
max-line-length = 120
import-order-style = fuzeman
application-import-names =
examples,
trakt,
tests
require-code = True