forked from in-toto/in-toto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
34 lines (26 loc) · 940 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# To run an individual test environment run e.g. tox -e py38
[tox]
isolated_build = true
envlist = lint,py{37,38,39,310,311}
skipsdist=True
[testenv]
deps =
-rrequirements-tox.txt
commands =
# Run unittests with coverage
coverage run tests/runtests.py
coverage report -m --fail-under 99
[testenv:lint]
# NOTE: As opposed to above pyXY environments, which run in pythonX.Y, this
# environment uses the `python` available on the path.
commands =
black --check --diff .
isort --check --diff .
pylint in_toto tests
# Run bandit, a security linter from OpenStack Security
# Exclude files that need special treatment and are tested below
bandit -r in_toto