forked from release-engineering/pubtools-sign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
70 lines (62 loc) · 1.36 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 = py37,black,flake8,docs,mypy,py3-bandit
skip_missing_interpreters = true
isolated_build = True
[testenv]
deps=
-rrequirements-test.txt
commands=
pytest -vv \
--cov-config .coveragerc --cov=pubtools.sign --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
paramiko
commands = sphinx-build -b html docs/source docs/build
[testenv:flake8]
description = PEP8 checks
basepython = python3
deps =
flake8
flake8-docstrings
commands =
flake8 src/pubtools tests
[testenv:py3-bandit]
deps=
-rrequirements-test.txt
commands=
bandit -r . -ll --exclude './.tox'
[testenv:mypy]
description = mypy checks
basepython = python3
deps =
-rrequirements-test.txt
commands =
mypy src
[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
pubtools/_sign/hooks.py:D401