Merge pull request #7063 from python-pillow/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Andrew Murray 2023-04-04 17:50:02 +10:00 committed by GitHub
commit 7d3a6aae8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.1.0 rev: 23.3.0
hooks: hooks:
- id: black - id: black
args: [--target-version=py38] args: [--target-version=py38]
@ -14,7 +14,7 @@ repos:
- id: isort - id: isort
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 1.7.4 rev: 1.7.5
hooks: hooks:
- id: bandit - id: bandit
args: [--severity-level=high] args: [--severity-level=high]
@ -26,10 +26,10 @@ repos:
- id: yesqa - id: yesqa
- repo: https://github.com/Lucas-C/pre-commit-hooks - repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2 rev: v1.5.1
hooks: hooks:
- id: remove-tabs - id: remove-tabs
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.opt$) exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 6.0.0 rev: 6.0.0
@ -57,7 +57,7 @@ repos:
- id: sphinx-lint - id: sphinx-lint
- repo: https://github.com/tox-dev/tox-ini-fmt - repo: https://github.com/tox-dev/tox-ini-fmt
rev: 0.6.1 rev: 1.0.0
hooks: hooks:
- id: tox-ini-fmt - id: tox-ini-fmt

View File

@ -1,8 +1,8 @@
[tox] [tox]
minversion = 1.9
envlist = envlist =
lint lint
py{py3, 311, 310, 39, 38} py{py3, 311, 310, 39, 38}
minversion = 1.9
[testenv] [testenv]
deps = deps =
@ -15,15 +15,16 @@ 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}
allowlist_externals = make allowlist_externals =
make
[testenv:lint] [testenv:lint]
passenv =
PRE_COMMIT_COLOR
skip_install = true skip_install = true
deps = deps =
check-manifest check-manifest
pre-commit pre-commit
passenv =
PRE_COMMIT_COLOR
commands = commands =
pre-commit run --all-files --show-diff-on-failure pre-commit run --all-files --show-diff-on-failure
check-manifest check-manifest