Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add allowlist_externals=make to fix tox 4 #6801

Merged
merged 2 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
args: ["--target-version", "py37"]
Expand All @@ -9,7 +9,7 @@ repos:
types: []

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.11.1
hooks:
- id: isort

Expand Down Expand Up @@ -48,5 +48,10 @@ repos:
hooks:
- id: sphinx-lint

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 0.5.2
hooks:
- id: tox-ini-fmt

ci:
autoupdate_schedule: monthly
25 changes: 11 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
# 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]
envlist =
lint
py{37,38,39,310,311,py3}
py{py3, 311, 310, 39, 38, 37}
minversion = 1.9

[testenv]
deps =
cffi
numpy
extras =
tests
commands =
make clean
{envpython} -m pip install --global-option="build_ext" --global-option="--inplace" .
{envpython} selftest.py
{envpython} -m pytest -W always {posargs}
deps =
cffi
numpy
allowlist_externals = make

[testenv:lint]
commands =
pre-commit run --all-files --show-diff-on-failure
check-manifest
passenv =
PRE_COMMIT_COLOR
skip_install = true
deps =
check-manifest
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
check-manifest
skip_install = true
passenv = PRE_COMMIT_COLOR