-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
70 lines (62 loc) · 1.39 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
[tox]
envlist = py311,py37,black,flake8,{py37}-docs,mypy,py3-bandit
skip_missing_interpreters = true
[testenv]
deps=
-rrequirements-test.txt
commands=
pytest -vv \
--cov-config .coveragerc --cov=pubtools._quay --cov-report term \
--cov-report xml --cov-report html {posargs}
whitelist_externals=sh
[testenv:black]
description = black checks
basepython = python3
deps =
black
commands =
black -l 100 --check --diff src/pubtools tests
[testenv:black-format]
description = apply black formatting
basepython = python3
deps =
black
commands =
black -l 100 src/pubtools tests
[testenv:docs]
basepython = python3
deps=
docutils==0.16
Sphinx
sphinx_rtd_theme
sphinx-argparse==0.4.0
paramiko
commands = python setup.py build_sphinx
[testenv:flake8]
description = PEP8 checks
basepython = python3
deps =
flake8
flake8-docstrings
commands =
flake8 src/pubtools tests
[testenv:mypy]
description = mypy checks
basepython = python3
deps =
-rrequirements-test.txt
-rrequirements.txt
commands =
mypy src/pubtools/_quay
[testenv:py3-bandit]
deps=
-rrequirements-test.txt
commands=
bandit -r . -ll --exclude './.tox'
[flake8]
ignore = D100,D104,W503
max-line-length = 100
per-file-ignores =
tests/*:D103
# "D401 First line should be in imperative mood" -> hooks are not like typical functions
src/pubtools/_quay/hooks.py:D401