-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
40 lines (35 loc) · 844 Bytes
/
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
[tox]
envlist = bandit,black,flake8,typing,py
[testenv]
deps =
pytest-cov>=2.8
pytest>=5.4
commands =
pytest --cov=xtractmime \
--cov-report=term-missing --cov-report=html --cov-report=xml \
--verbose {posargs: xtractmime tests}
[testenv:bandit]
basepython = python3
deps =
bandit
commands =
bandit -r {posargs: xtractmime setup.py}
[testenv:black]
basepython = python3
deps =
black==22.3.0
commands =
black --check {posargs: xtractmime setup.py tests}
[testenv:flake8]
basepython = python3
deps =
flake8==3.7.9
commands =
flake8 --exclude=.git,.tox,venv* {posargs: xtractmime setup.py tests}
[testenv:typing]
basepython = python3
deps =
mypy==0.910
commands =
mypy --show-error-codes --ignore-missing-imports \
--follow-imports=skip {posargs: xtractmime setup.py tests}