From c868ff03665c93b88d06c710fbecf9b83604732e Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 4 May 2023 13:05:15 -0700 Subject: [PATCH 1/2] STY: Enable PLC Pylint Ruff check --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 042d13ea7956a..4a6a53232bb18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -209,7 +209,7 @@ select = [ # flake8-quotes "Q", # pylint - "PLE", "PLR", "PLW", + "PLC", "PLE", "PLR", "PLW", # misc lints "PIE", # flake8-pyi @@ -273,6 +273,8 @@ ignore = [ "PLW0603", # Docstrings should not be included in stubs "PYI021", + # compare-to-empty-string + "PLC1901", # Use typing_extensions.TypeAlias for type aliases # "PYI026", # not yet implemented # Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax) From c9a6edd79964d9654702a62f1cdd0ce72ca58df7 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 4 May 2023 13:13:14 -0700 Subject: [PATCH 2/2] Add flake8 debugger and gettext --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4a6a53232bb18..6eef8e4fa9b7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -208,6 +208,10 @@ select = [ "B", # flake8-quotes "Q", + # flake8-debugger + "T10", + # flake8-gettext + "INT", # pylint "PLC", "PLE", "PLR", "PLW", # misc lints