From ef0888619efdc18a75b05133c9e863e78d590c15 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 1 Dec 2026 11:03:56 +0100 Subject: [PATCH] Enable PYI019 and PYI034 --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 92c28e4..28d62be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -301,6 +301,8 @@ select = [ # "PL", # flake8-use-pathlib => `pathlib` instead of `os` functions # "PTH", + # flake8-pyi (only two codes) => `t.Self` instead of the class name + # "PYI019", "PYI034", # Ruff-specific rules => Fewer bugs and cleaner code # "RUF", # flake8-self => No access to private members from outside @@ -646,6 +648,8 @@ select = [ "PL", # flake8-use-pathlib => `pathlib` instead of `os` functions "PTH", + # flake8-pyi (only two codes) => `t.Self` instead of the class name + "PYI019", "PYI034", # Ruff-specific rules => Fewer bugs and cleaner code "RUF", # flake8-self => No access to private members from outside