-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
91 lines (78 loc) · 1.73 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
87
88
89
90
91
# tox (https://tox.readthedocs.io/) is a tool for running tests
# Run tests in multiple virtualenvs.
[tox]
envlist =
flake8
pylint
py{36,37,38,39,310}
bandit
readme
requirements
safety
clean
[testenv]
description = Unit tests and doctests
deps =
cli-test-helpers
pytest
commands =
pytest {posargs}
[testenv:clean]
description = Remove Python bytecode and other debris
skip_install = true
deps = pyclean
commands =
pyclean {posargs} {toxinidir}
rm -rf .tox/ concierge_cli.egg-info/ build/ dist/
whitelist_externals =
rm
[testenv:bandit]
description = PyCQA security linter
skip_install = true
deps = bandit
commands = bandit -r {posargs:concierge_cli}
[testenv:flake8]
description = Static code analysis and code style
skip_install = true
deps = flake8
commands = flake8 {posargs}
[testenv:pylint]
description = Check for errors and code smells
deps = pylint
commands = pylint --rcfile=tox.ini {posargs:concierge_cli setup}
[testenv:readme]
description = Ensure README renders on PyPI
skip_install = true
deps =
build
twine
commands =
{envpython} -m build
twine check dist/*
[testenv:requirements]
description = Update package requirements
skip_install = true
deps =
pip-tools
pipenv
commands =
pip-compile --upgrade
pipenv update
[testenv:safety]
description = Check for vulnerable dependencies
skip_install = true
deps = safety
commands = safety check -r requirements.txt --bare
[bandit]
exclude = .tox,build,dist,tests
[flake8]
exclude = .tox,build,dist,concierge_cli.egg-info
[pylint]
[pylint.main]
output-format = colorized
disable = too-few-public-methods,too-many-arguments,consider-using-f-string
[pytest]
addopts =
--color=yes
--doctest-modules
--verbose