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:
parent
3223ae4212
commit
05560d29af
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue