-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
If I run a command like poetry add fastapi@latest it will generate a specifier like fastapi (>=0.121.2,<0.122.0).
Unfortunately, with the pyproject-fmt hook v2.11.1, that will be broken by removing the closing parentheses:
pyproject-fmt............................................................Failed
- hook id: pyproject-fmt
- exit code: 1
- files were modified by this hook
--- pyproject.toml
+++ pyproject.toml
@@ -22,7 +22,7 @@
dependencies = [
"anyio~=3.0",
"internal-package~=1.19.2",
- "fastapi (>=0.121.2,<0.122.0)",
+ "fastapi (>=0.121.2,<0.122",
"httptools>=0.6.4,<0.7",
"httpx>=0.28.1,<0.29",
"pymysql>=1.1.1,<2",
Validate pyproject.toml..................................................Failed
- hook id: validate-pyproject
- exit code: 1
Invalid file: pyproject.toml
[ERROR] `project.dependencies[2]` must be pep508
Metadata
Metadata
Assignees
Labels
No labels