diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28d7eb81..d99b43e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,10 @@ repos: rev: 22.3.0 hooks: - id: black - language_version: python3.7 + language_version: python3.8 + args: + - "--target-version" + - "py37" - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: diff --git a/tox.ini b/tox.ini index 99e68f31..cf086ee9 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = {py37,py38,py39,py10}-django32 {py38,py39,py10}-django{40,main} py38-docs - py38-qa + py38-lint [testenv] commands = @@ -35,7 +35,7 @@ changedir = docs/source deps = -rdocs/requirements.txt commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html -[testenv:lint] +[testenv:py38-lint] deps = pre-commit commands = pre-commit run --all-files