-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.cfg
71 lines (61 loc) · 1.53 KB
/
setup.cfg
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
[tox:tox]
envlist = pytest, flake8, pylint, isort, sphinx, doc8
[testenv:pytest]
passenv = *
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands = python3 -B -m pytest {tty:--color=yes} {posargs} -v --mypy \
--cov=aiojenkins --asyncio-mode=auto --cov=tests --cov-report=term --ignore docs
commands_post = rm -rf {toxinidir}/aiojenkins.egg-info
allowlist_externals = rm
[coverage:run]
data_file = .tox/.coverage
[mypy]
cache_dir = .tox/.mypy_cache
ignore_errors = false
ignore_missing_imports = true
[testenv:flake8]
deps =
flake8==7.1.*
flake8-quotes
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands = flake8 aiojenkins tests
[flake8]
max-line-length = 99
inline-quotes = single
[testenv:pylint]
skip_install = true
deps =
pylint==3.2.*
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands =
pylint \
--disable=C0103,C0114,C0115,C0116,C0209,C0415 \
--disable=W0212,W0511,R0902,R0903 \
--disable=R0801,R0913 \
aiojenkins tests
[testenv:isort]
deps = isort
commands = isort aiojenkins tests
[isort]
line_length = 79
lines_between_types = 1
multi_line_output = 3
include_trailing_comma = 1
known_third_party = aiohttp, pytest
[testenv:sphinx]
skip_install = true
changedir = docs
deps =
sphinx==5.*
-r{toxinidir}/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:doc8]
skip_install = true
changedir = docs
deps =
doc8==1.*
commands =
doc8