Skip to content

Commit c4424f7

Browse files
committed
Add basic Pyrefly configuration to pyproject.toml
This makes it easier to use the Pyrefly type checker with various IDEs.
1 parent c4d6885 commit c4424f7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,23 @@ score = false
172172
[tool.pylint.variables]
173173
init-import = true
174174

175+
[tool.pyrefly]
176+
python-version = "3.14"
177+
178+
replace-imports-with-any = [
179+
"parted", # pyparted doesn't have type hints
180+
]
181+
182+
[tool.pyrefly.errors]
183+
# Enable some additional rules that are disabled by default
184+
implicit-abstract-class = true
185+
missing-override-decorator = true
186+
missing-source = true
187+
not-required-key-access = true
188+
open-unpacking = true
189+
unannotated-parameter = true
190+
unused-ignore = true
191+
175192
[tool.ruff]
176193
target-version = "py314"
177194
line-length = 160

0 commit comments

Comments
 (0)