Merge pull request #6801 from hugovk/fix-tox-4

Add allowlist_externals=make to fix tox 4
This commit is contained in:
Andrew Murray 2022-12-14 08:26:06 +11:00 committed by GitHub
commit d37c168a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 16 deletions

View File

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.10.0 rev: 22.12.0
hooks: hooks:
- id: black - id: black
args: ["--target-version", "py37"] args: ["--target-version", "py37"]
@ -9,7 +9,7 @@ repos:
types: [] types: []
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.10.1 rev: 5.11.1
hooks: hooks:
- id: isort - id: isort
@ -48,5 +48,10 @@ repos:
hooks: hooks:
- id: sphinx-lint - id: sphinx-lint
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 0.5.2
hooks:
- id: tox-ini-fmt
ci: ci:
autoupdate_schedule: monthly autoupdate_schedule: monthly

25
tox.ini
View File

@ -1,15 +1,13 @@
# Tox (https://tox.readthedocs.io/en/latest/) 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,
# "python3 -m pip install tox" and then run "tox" from this directory.
[tox] [tox]
envlist = envlist =
lint lint
py{37,38,39,310,311,py3} py{py3, 311, 310, 39, 38, 37}
minversion = 1.9 minversion = 1.9
[testenv] [testenv]
deps =
cffi
numpy
extras = extras =
tests tests
commands = commands =
@ -17,16 +15,15 @@ commands =
{envpython} -m pip install --global-option="build_ext" --global-option="--inplace" . {envpython} -m pip install --global-option="build_ext" --global-option="--inplace" .
{envpython} selftest.py {envpython} selftest.py
{envpython} -m pytest -W always {posargs} {envpython} -m pytest -W always {posargs}
deps = allowlist_externals = make
cffi
numpy
[testenv:lint] [testenv:lint]
passenv =
PRE_COMMIT_COLOR
skip_install = true
deps =
check-manifest
pre-commit
commands = commands =
pre-commit run --all-files --show-diff-on-failure pre-commit run --all-files --show-diff-on-failure
check-manifest check-manifest
deps =
pre-commit
check-manifest
skip_install = true
passenv = PRE_COMMIT_COLOR