Bug 1823694 - [lint.ruff] Disable some warnings we don't actually want to enforce, r=linter-reviewers,andi

This disables:
PLR0911     too-many-return-statements
PLR0912     too-many-branches
PLR0913     too-many-arguments
PLR0914     too-many-return-statements
PLR2004     magic-value-comparison

This removes nearly 2000 warnings.

Differential Revision: https://phabricator.services.mozilla.com/D173156
This commit is contained in:
Andrew Halberstadt 2023-03-21 14:36:26 +00:00
Родитель 6eec2e9f70
Коммит 20461d4e7d
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -11,8 +11,10 @@ ignore = [
# These should be triaged and either fixed or moved to the list below.
"E713", "E714", "W605",
# These are intentionally ignored (not necessarily for good reason).
"E741",
# These are intentionally ignored.
"E741", # ambiguous-variable-name
"PLR09", # too-many-return-statements, too-many-branches, too-many-arguments, too-many-statements
"PLR2004", # magic-value-comparison
# These are handled by black.
"E1", "E4", "E5", "W2", "W5"