This repository has been archived by the owner on Dec 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
82 lines (65 loc) · 1.58 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
[tox]
envlist = py310, mypy, pylint, isort, black
skipsdist = true
[envlists]
test = py310
lint = mypy, pylint, isort, black
[testenv]
deps = -rrequirements.txt
pytest
pytest-it
pytest-cov
pytest-mock
pyfakefs
commands = python -m pytest -rs --it --cov putio --cov-config tox.ini {posargs}
[coverage:run]
branch = True
omit = putio/_*.py
data_file = .coverage_cache
[coverage:report]
show_missing = True
exclude_lines =
if (verbose|verbosity):
if __name__ == ['"]__main__['"]:
[coverage:html]
directory = cov-html
[testenv:mypy]
deps = -rrequirements.txt
mypy
types-requests
commands = python -m mypy --config-file tox.ini -p putio
[mypy]
strict = True
ignore_missing_imports = True
[testenv:pylint]
deps = -rrequirements.txt
pylint
commands = python -m pylint --rcfile=tox.ini putio
[MASTER]
load-plugins = pylint.extensions.docparams, pylint.extensions.mccabe
ignore-patterns = _errors.py, _types.py
[FORMAT]
max-line-length = 88
[DESIGN]
max-args = 8
max-locals = 30
[MESSAGE CONTROL]
disable = too-many-branches
[testenv:isort]
deps = isort[colors]
commands = python -m isort --diff putio tests
[testenv:isortfmt]
deps = isort[colors]
commands = python -m isort {posargs: putio tests}
[isort]
force_single_line = true
lines_after_imports = 2
color_output=true
sections = FUTURE,STDLIB,PYTEST,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_pytest= pytest
[testenv:black]
deps = black
commands = python -m black --diff --color putio tests
[testenv:blackfmt]
deps = black
commands = python -m black {posargs: putio tests}