-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtox.ini
More file actions
40 lines (32 loc) · 816 Bytes
/
tox.ini
File metadata and controls
40 lines (32 loc) · 816 Bytes
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
[tox]
envlist = test,flake8,pylint,bandit
[testenv]
basepython=python3
skip_install = true
[testenv:test]
sitepackages = true
deps = -r requirements-dev.txt
commands = python3 -m pytest --cov=charon {posargs:"tests"}
[testenv:pylint]
deps = pylint>=2.9.6
commands = python3 -m pylint charon tests
[testenv:flake8]
deps = flake8
commands = python3 -m flake8 charon tests
[testenv:bandit]
deps = bandit
commands = bandit-baseline -r charon -ll -ii
[testenv:mypy]
deps = mypy==0.910
commands =
mypy \
--install-types \
--non-interactive \
--ignore-missing-imports \
--package {posargs:"charon"}
[coverage:report]
skip_covered = true
sort = Cover
[pytest]
addopts = -ra --color=auto --html=__pytest_reports/charon-unit-tests.html --self-contained-html
render_collapsed = True