From 4d7ab443183b7c8f081bfc915833d7471eb34a87 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Wed, 31 Jan 2024 19:16:05 -0500 Subject: [PATCH] Add `pylint` rules in Ruff --- pyproject.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b621d7bdd..c553b3988 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,9 +93,23 @@ select = [ "UP", # pyupgrade "B", # flake8-bugbear # "SIM",# flake8-simplify - "I", # isort + "I", # isort + "PL", # pylint +] +ignore = [ + "E501", # line-too-long + "E713", # not-in-test + "E714", # not-is-test + "E741", # ambiguous-variable-name + "PLR0911", # too-many-return-statements + "PLR0912", # too-many-branches + "PLR0913", # too-many-arguments + "PLR0915", # too-many-statements + "PLR2004", # magic-value-comparison + "PLR5501", # collapsible-else-if + "PLW0603", # global-statement + "PLW2901", # redefined-loop-name ] -ignore = ["E501", "E713", "E714", "E741"] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "F403"]