From 3d2673ac78cc5bd2b7738c887564376e3f6d3012 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 16 Nov 2024 02:28:00 -0500 Subject: [PATCH] Enable the Pylint-warnings rules in Ruff (#2823) The rule implementations can differ between Ruff and Pylint, so enable them both for maximum coverage. --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d3a46955..504726cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -185,6 +185,7 @@ select = [ "PIE", # flake8-pie "PLC", # Pylint conventions "PLE", # Pylint errors + "PLW", # Pylint warnings "RSE", # flake8-raise "SLOT", # flake8-slot "T10", # flake8-debugger @@ -194,10 +195,11 @@ select = [ ] ignore = [ - "E701", # multiple-statements-on-one-line-colon - "E722", # bare-except - "F401", # unused-import - "W191", # tab-indentation + "E701", # multiple-statements-on-one-line-colon + "E722", # bare-except + "F401", # unused-import + "PLW2901", # redefined-loop-name + "W191", # tab-indentation ] [tool.ruff.lint.mccabe]