Skip to content

Commit 8a13bf8

Browse files
authored
Merge pull request #7530 from hugovk/infer-target-version
Black and Ruff infer `target-version` from `requires-python` in `pyproject.toml`
2 parents aab5a2f + 4b62012 commit 8a13bf8

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repos:
99
rev: 23.10.1
1010
hooks:
1111
- id: black
12-
args: [--target-version=py38]
1312

1413
- repo: https://github.com/PyCQA/bandit
1514
rev: 1.7.5

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ lint:
118118
.PHONY: lint-fix
119119
lint-fix:
120120
python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black
121-
python3 -m black --target-version py38 .
121+
python3 -m black .
122122
python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
123123
python3 -m ruff --fix .

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ package-dir = {"" = "src"}
7878
version = {attr = "PIL.__version__"}
7979

8080
[tool.ruff]
81-
target-version = "py38"
8281
line-length = 88
8382
select = [
8483
"E", # pycodestyle errors

0 commit comments

Comments
 (0)