-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
86 lines (76 loc) · 1.19 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
[tox]
skip_missing_interpreters = true
envlist =
py{37,38,39,310,311,312}
lint
typing
prospector
[testenv]
deps =
coverage~=5.3
commands =
coverage erase
coverage run -m unittest discover
coverage report
coverage html
[testenv:unittest]
commands = python -m unittest discover
[testenv:lint]
deps =
flake8>=3.8
isort[pyproject]>=5
commands =
isort --check-only --diff .
flake8 .
[testenv:typing]
deps =
mypy>=0.900
commands =
mypy .
[testenv:prospector]
deps =
prospector[with_mypy,with_pyroma]>=1.7
commands =
prospector .
#
# Tools configuration
#
[coverage:report]
exclude_lines =
pragma: no cover
@abstract
@overload
[coverage:run]
omit =
.tox/*
tests/*
venv/*
[flake8]
ignore =
# Function name should be lowercase
N802
# Line break before binary operator
W503
exclude =
.eggs
.tox
build
tests
venv
setup.py
max-line-length=130
per-file-ignores =
# Imported but unused
__init__.py: F401
[isort]
profile = black
include_trailing_comma = False
lines_after_imports = 2
line_length = 120
multi_line_output = 5
skip =
.eggs
.tox
build
setup.py
venv