From 410e989cd6c9b73e78b29bb30a0af6ff0b96a185 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Wed, 17 Jul 2024 13:22:38 -0700 Subject: [PATCH] pylintrc updates for -next-next pylint (#2702) --- .chronus/changes/pylintUpdates-2024-6-17-12-39-48.md | 7 +++++++ packages/autorest.python/pylintrc | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .chronus/changes/pylintUpdates-2024-6-17-12-39-48.md diff --git a/.chronus/changes/pylintUpdates-2024-6-17-12-39-48.md b/.chronus/changes/pylintUpdates-2024-6-17-12-39-48.md new file mode 100644 index 00000000000..4c0d53cc642 --- /dev/null +++ b/.chronus/changes/pylintUpdates-2024-6-17-12-39-48.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@autorest/python" +--- + +Updating pylintrc rules \ No newline at end of file diff --git a/packages/autorest.python/pylintrc b/packages/autorest.python/pylintrc index 558c7fb6cfb..9d0386db200 100644 --- a/packages/autorest.python/pylintrc +++ b/packages/autorest.python/pylintrc @@ -7,12 +7,16 @@ reports=no ignore=_generated,samples,examples,test,tests,doc,.tox,generated_samples [MESSAGES CONTROL] + +# Add enable for useless disables +enable=useless-suppression + # For all codes, run 'pylint --list-msgs' or go to 'https://pylint.readthedocs.io/en/latest/reference_guide/features.html' # locally-disabled: Warning locally suppressed using disable-msg # cyclic-import: because of https://github.com/PyCQA/pylint/issues/850 # too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods. # Let's black deal with bad-continuation -disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name +disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin [FORMAT] max-line-length=120