forked from in-toto/in-toto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (36 loc) · 1.33 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
# 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{38,39,310,311}
skipsdist=True
[testenv]
deps =
-rrequirements-test.txt
commands =
# Run unittests with coverage
coverage run tests/runtests.py
coverage report -m --fail-under 99
# Develop test env to run tests against securesystemslib's main branch
# Must to be invoked explicitly with, e.g. `tox -e with-sslib-main`
[testenv:with-sslib-main]
commands_pre =
pip install --force-reinstall git+https://github.com/secure-systems-lab/securesystemslib.git@main#egg=securesystemslib[crypto,pynacl]
commands =
coverage run tests/runtests.py
coverage report -m
[testenv:lint]
# NOTE: As opposed to above pyXY environments, which run in pythonX.Y, this
# environment uses the `python` available on the path.
deps =
-rrequirements-lint.txt
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