From 7da04c963f7e134c86461b252828ebb7594151a5 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 10 Feb 2024 23:41:33 +0100 Subject: [PATCH] [ruff] Add unwanted pylint message to the ignore list --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 56b32b210..72988e233 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,8 @@ select = [ "W", # pycodestyle "PIE", # flake8-pie "PGH004", # pygrep-hooks - Use specific rule codes when using noqa + "PLE", # pylint error + "PLW", # pylint warning "PLR1714", # Consider merging multiple comparisons ] ignore = [ @@ -136,6 +138,11 @@ ignore = [ "D415", # First line should end with a period, question mark, or exclamation point # ruff ignore "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` + # pylint ignore + "PLW0603", # Using the global statement + "PLW0120", # remove the else and dedent its contents + "PLW2901", # for loop variable overwritten by assignment target + "PLR5501", # Use `elif` instead of `else` then `if` ] [tool.ruff.lint.pycodestyle]