Add basic Pyrefly configuration to pyproject.toml

This makes it easier to use the Pyrefly type checker with various
IDEs.
This commit is contained in:
correctmost 2026-04-28 08:54:03 -04:00
parent c4d68855cb
commit c4424f70dc
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