Skip to content

Commit bfbe5c7

Browse files
committed
Set style env to Python 3.14
This change avoids the following warning from black: Python 3.12 cannot parse code formatted for Python 3.14. To fix this: run Black with Python 3.14, set --target-version to py312, or use --fast to skip the safety check. Black's safety check verifies equivalence by parsing the AST, which fails when the running Python is older than the target version.
1 parent 35a0a9f commit bfbe5c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

{{cookiecutter.package_name}}/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ extra-dependencies = [
131131
check = "pylint src tests examples"
132132

133133
[tool.hatch.envs.style]
134+
python = "3.14"
134135
detached = true
135136
extra-dependencies = [
136137
"black",

0 commit comments

Comments
 (0)