diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,7 +1,7 @@ [tox] envlist = py{37,38,39,310,311,py3}-{noextra,format,formatnongpl}-{build,tests} - audit + {noextra,format,formatnongpl}-audit readme secrets style @@ -26,6 +26,11 @@ commands = format,perf,perfsuite: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]' formatnongpl: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format-nongpl]' + audit: {envpython} -m pip_audit + audit-formatnongpl: {envpython} -m piplicenses {posargs} --ignore-packages pip-requirements-parser pip_audit pip-api --allow-only="Apache Software License;ISC License (ISCL);MIT License;BSD License;Mozilla Public License 2.0 (MPL 2.0)" + + build: {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist + # Ignore the deprecation warning until pypa/setuptools#3276 is released tests,coverage,codecov: {envpython} -Werror -W"ignore:module 'sre_constants' is deprecated:DeprecationWarning" -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema} tests: {envpython} -m doctest {toxinidir}/README.rst @@ -37,9 +42,10 @@ commands = perf: {envpython} {toxinidir}/jsonschema/benchmarks/issue232.py --inherit-environ JSON_SCHEMA_TEST_SUITE {posargs:--output {envtmpdir}/bench-issue232.json} perfsuite: {envpython} {toxinidir}/jsonschema/benchmarks/json_schema_test_suite.py --inherit-environ JSON_SCHEMA_TEST_SUITE {posargs:--output {envtmpdir}/bench-json_schema_test_suite.json} - - build: {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist deps = + audit: pip-audit + audit-formatnongpl: pip-licenses + build: build perf,perfsuite: pyperf @@ -63,12 +69,6 @@ commands = {envpython} -m twine check {envtmpdir}/dist/* {envbindir}/rst2html5.py --halt=warning {toxinidir}/CHANGELOG.rst /dev/null -[testenv:audit] -deps = pip-audit -commands = - {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]' - {envpython} -m pip_audit - [testenv:secrets] deps = detect-secrets commands = {envbindir}/detect-secrets scan {toxinidir} |