Add basic Pyrefly configuration to pyproject.toml (#4494)

This makes it easier to use the Pyrefly type checker with various
IDEs.
This commit is contained in:
correctmost 2026-04-29 07:54:59 -04:00 committed by GitHub
parent 3223ae4212
commit 05560d29af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

View File

@ -172,6 +172,23 @@ score = false
[tool.pylint.variables]
init-import = true
[tool.pyrefly]
python-version = "3.14"
replace-imports-with-any = [
"parted", # pyparted doesn't have type hints
]
[tool.pyrefly.errors]
# Enable some additional rules that are disabled by default
implicit-abstract-class = true
missing-override-decorator = true
missing-source = true
not-required-key-access = true
open-unpacking = true
unannotated-parameter = true
unused-ignore = true
[tool.ruff]
target-version = "py314"
line-length = 160