forked from Julian/avif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (50 loc) · 1.69 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
58
59
60
61
[tox]
envlist =
{py37,py38,py39,pypy3}-{build,safety,tests}
readme
secrets
style
skipsdist = True
[testenv]
passenv = CODECOV* CI C_INCLUDE_PATH LIBRARY_PATH LD_LIBRARY_PATH
setenv =
coverage,codecov: MAYBE_COVERAGE = coverage run -m
coverage,codecov: COVERAGE_RCFILE={toxinidir}/.coveragerc
coverage,codecov: COVERAGE_DEBUG_FILE={envtmpdir}/coverage-debug
coverage,codecov: COVERAGE_FILE={envtmpdir}/coverage-data
changedir = {envtmpdir}
args_are_paths = false
commands =
{envpython} -m pip install {toxinidir}
safety: {envpython} -m safety check
tests,coverage,codecov: {envpython} -m {env:MAYBE_COVERAGE:} pytest {posargs:{toxinidir}/avif}
tests: {envpython} -m doctest {toxinidir}/README.rst
coverage: {envpython} -m coverage report --show-missing
coverage: {envpython} -m coverage html --directory={envtmpdir}/htmlcov
codecov: {envpython} -m coverage xml -o {envtmpdir}/coverage.xml
codecov: codecov --required --disable gcov --file {envtmpdir}/coverage.xml
deps =
safety: safety
tests,coverage,codecov: pytest
coverage,codecov: coverage
codecov: codecov
[testenv:build]
deps = build
commands = {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist
[testenv:bandit]
deps = bandit
commands = {envpython} -m bandit --recursive avif
[testenv:readme]
deps =
build
twine
commands =
{envpython} -m build --outdir {envtmpdir}/dist {toxinidir}
{envpython} -m twine check {envtmpdir}/dist/*
[testenv:secrets]
deps = detect-secrets
commands = {envbindir}/detect-secrets scan {toxinidir}
[testenv:style]
deps = flake8
commands =
{envpython} -m flake8 {posargs} --max-complexity 10 {toxinidir}/avif {toxinidir}/setup.py