From c4424f70dc7781c33b0c4f99144e10c35d152731 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Tue, 28 Apr 2026 08:54:03 -0400 Subject: [PATCH] Add basic Pyrefly configuration to pyproject.toml This makes it easier to use the Pyrefly type checker with various IDEs. --- pyproject.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 95d851444b..1add6027a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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