Skip to content

Commit

Permalink
Merge pull request #7530 from hugovk/infer-target-version
Browse files Browse the repository at this point in the history
Black and Ruff infer `target-version` from `requires-python` in `pyproject.toml`
  • Loading branch information
mergify[bot] committed Nov 11, 2023
2 parents aab5a2f + 4b62012 commit 8a13bf8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ package-dir = {"" = "src"}
version = {attr = "PIL.__version__"}

[tool.ruff]
target-version = "py38"
line-length = 88
select = [
"E", # pycodestyle errors
Expand Down

0 comments on commit 8a13bf8

Please sign in to comment.