-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
46 lines (41 loc) · 1.4 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
[tox]
envlist =
py311-cov-xdist,
check
isolated_build=True
[testenv]
passenv = CI,GITHUB_*,CODECOV_*
deps =
xdist: pytest-xdist[psutil]
pytest-cov
codecov: codecov
extras = test
# Run testsuite with coverage when '-cov' and with multi-threading when '-xdist'
# is in the env name
commands=
pytest -vvv --ignore=build --html=pytest-report.html \
--junit-xml=pytest-report.xml --self-contained-html \
--durations=10 \
xdist: -n auto \
cov: --e3-cov-rewrite {envsitepackagesdir} src \
cov: --cov {envsitepackagesdir}/e3/aws --cov-report= --cov-fail-under=0 \
[]
codecov: codecov
[testenv:check]
extras =
config
check
commands =
# Run bandit checks. Accept yaml.load(), pickle, and exec since this
# is needed by e3. There is also e3.env.tmp_dir that returns the TMPDIR
# environment variable. Don't check for that.
# Ignore B324 that is no longer similar to B303 since Python3.9.
bandit -r {toxinidir}/src -ll -ii -s B102,B108,B301,B506,B303,B324,B202
mypy {toxinidir}/src {toxinidir}/tests
[flake8]
exclude = .git,__pycache__,build,dist,.tox
ignore = B301,C901,E203,E266,E501,W503,D100,D101,D102,D102,D103,D104,D105,D106,D107,D203,D403,D213,E704,B905
# line length is intentionally set to 80 here because black uses Bugbear
# See https://github.com/psf/black/blob/master/README.md#line-length for more details
max-line-length = 80
select = B,C,D,E,F,W,T4,B9