From 4c0bfabab2cfe437573ad8201485cf8f561a6618 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Tue, 5 Apr 2022 14:29:15 +0200 Subject: [PATCH] Fix lint entry in tox.ini --- .pre-commit-config.yaml | 5 ++++- tox.ini | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28d7eb8..d99b43e 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 99e68f3..cf086ee 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