Skip to content

Commit 46eb3dc

Browse files
committed
Black also prefers 'requires-python'
1 parent 85147e5 commit 46eb3dc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies = [
2222
"sphinx-copybutton",
2323
"pyyaml-include<3.0",
2424
]
25+
requires-python = ">=3.9"
2526

2627
[project.optional-dependencies]
2728
dev = [
@@ -60,7 +61,6 @@ write_to = "_version.py"
6061

6162
[tool.black]
6263
line-length = 110
63-
target-version = ["py38"]
6464

6565
[tool.isort]
6666
profile = "black"

python-project-template/pyproject.toml.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ addopts = "--doctest-modules --doctest-glob=*.rst"
7878
{% if 'black' in enforce_style -%}
7979
[tool.black]
8080
line-length = 110
81-
target-version = ["py{{ py.min(python_versions) | replace(".", "") }}"]
8281
{% endif -%}
8382
{% if 'isort' in enforce_style -%}
8483
[tool.isort]

0 commit comments

Comments
 (0)