-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
57 lines (57 loc) · 1.02 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
[tox]
envlist = py{38,39,310},lint,typing,bandit,safety
isolated_build = True
requires = tox-pyenv
[testenv]
deps =
hypothesis
pytest>=6.0
pytest-html
commands =
pytest --html=pytest-reports/pytest-{envname}.html
ghaudit
[testenv:bandit]
basepython = python3.10
deps = bandit
commands =
python -V
bandit -r src/ghaudit
[testenv:lint]
basepython = python3.10
deps =
black
dlint # flake8 plugin
flake8
flake8-bugbear
flake8-comprehensions
# flake8-docstrings
flake8-isort
flake8-pie
# flake8-pylint
flake8-typing-imports
hypothesis
pylint
pyproject-flake8
commands =
python -V
black --diff --check src/ghaudit tests
pflake8 --show-source --statistics src/ghaudit tests
pylint --fail-under 9.65 src/ghaudit tests
[testenv:typing]
basepython = python3.10
deps =
hypothesis
mypy == 0.941
types-jinja2
types-passpy
types-requests
commands =
python -V
mypy --version
mypy
[testenv:safety]
basepython = python3.10
deps = safety
commands =
python -V
safety check