Merge pull request #7530 from hugovk/infer-target-version

Black and Ruff infer `target-version` from `requires-python` in `pyproject.toml`
This commit is contained in:
mergify[bot] 2023-11-11 08:06:31 +00:00 committed by GitHub
commit 8a13bf8b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -9,7 +9,6 @@ repos:
rev: 23.10.1
hooks:
- id: black
args: [--target-version=py38]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5

View File

@ -118,6 +118,6 @@ lint:
.PHONY: lint-fix
lint-fix:
python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black
python3 -m black --target-version py38 .
python3 -m black .
python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
python3 -m ruff --fix .

View File

@ -78,7 +78,6 @@ package-dir = {"" = "src"}
version = {attr = "PIL.__version__"}
[tool.ruff]
target-version = "py38"
line-length = 88
select = [
"E", # pycodestyle errors