diff mbox series

[v2,01/19] qapi: sort pylint suppressions

Message ID 20240112222945.3033854-2-jsnow@redhat.com (mailing list archive)
State New, archived
Headers show
Series qapi: statically type schema.py | expand

Commit Message

John Snow Jan. 12, 2024, 10:29 p.m. UTC
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/pylintrc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Markus Armbruster Jan. 15, 2024, 12:18 p.m. UTC | #1
John Snow <jsnow@redhat.com> writes:

> Suggested-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  scripts/qapi/pylintrc | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc
> index 90546df5345..78b63af4df6 100644
> --- a/scripts/qapi/pylintrc
> +++ b/scripts/qapi/pylintrc
> @@ -16,14 +16,14 @@ ignore-patterns=schema.py,
>  # --enable=similarities". If you want to run only the classes checker, but have
>  # no Warning level messages displayed, use "--disable=all --enable=classes
>  # --disable=W".
> -disable=fixme,
> +disable=consider-using-f-string,
>          missing-docstring,
>          too-many-arguments,
>          too-many-branches,
> -        too-many-statements,
>          too-many-instance-attributes,
> -        consider-using-f-string,
> +        too-many-statements,
>          useless-option-value,
> +        fixme,
>  
>  [REPORTS]

Any particular reason for putting fixme last?
John Snow Jan. 15, 2024, 7:58 p.m. UTC | #2
On Mon, Jan 15, 2024 at 7:18 AM Markus Armbruster <armbru@redhat.com> wrote:
>
> John Snow <jsnow@redhat.com> writes:
>
> > Suggested-by: Markus Armbruster <armbru@redhat.com>
> > Signed-off-by: John Snow <jsnow@redhat.com>
> > ---
> >  scripts/qapi/pylintrc | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc
> > index 90546df5345..78b63af4df6 100644
> > --- a/scripts/qapi/pylintrc
> > +++ b/scripts/qapi/pylintrc
> > @@ -16,14 +16,14 @@ ignore-patterns=schema.py,
> >  # --enable=similarities". If you want to run only the classes checker, but have
> >  # no Warning level messages displayed, use "--disable=all --enable=classes
> >  # --disable=W".
> > -disable=fixme,
> > +disable=consider-using-f-string,
> >          missing-docstring,
> >          too-many-arguments,
> >          too-many-branches,
> > -        too-many-statements,
> >          too-many-instance-attributes,
> > -        consider-using-f-string,
> > +        too-many-statements,
> >          useless-option-value,
> > +        fixme,
> >
> >  [REPORTS]
>
> Any particular reason for putting fixme last?
>

Uhh. You know, I have no idea? I swore I just used emacs to sort the
lines, but ... lol? You'd think I'd notice that this wasn't in
alphabetical order, but...

*cough* sorry
Markus Armbruster Jan. 16, 2024, 6:48 a.m. UTC | #3
John Snow <jsnow@redhat.com> writes:

> On Mon, Jan 15, 2024 at 7:18 AM Markus Armbruster <armbru@redhat.com> wrote:
>>
>> John Snow <jsnow@redhat.com> writes:
>>
>> > Suggested-by: Markus Armbruster <armbru@redhat.com>
>> > Signed-off-by: John Snow <jsnow@redhat.com>
>> > ---
>> >  scripts/qapi/pylintrc | 6 +++---
>> >  1 file changed, 3 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc
>> > index 90546df5345..78b63af4df6 100644
>> > --- a/scripts/qapi/pylintrc
>> > +++ b/scripts/qapi/pylintrc
>> > @@ -16,14 +16,14 @@ ignore-patterns=schema.py,
>> >  # --enable=similarities". If you want to run only the classes checker, but have
>> >  # no Warning level messages displayed, use "--disable=all --enable=classes
>> >  # --disable=W".
>> > -disable=fixme,
>> > +disable=consider-using-f-string,
>> >          missing-docstring,
>> >          too-many-arguments,
>> >          too-many-branches,
>> > -        too-many-statements,
>> >          too-many-instance-attributes,
>> > -        consider-using-f-string,
>> > +        too-many-statements,
>> >          useless-option-value,
>> > +        fixme,
>> >
>> >  [REPORTS]
>>
>> Any particular reason for putting fixme last?
>>
>
> Uhh. You know, I have no idea? I swore I just used emacs to sort the
> lines, but ... lol? You'd think I'd notice that this wasn't in
> alphabetical order, but...
>
> *cough* sorry

No worries, happens to the best of us :)
diff mbox series

Patch

diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc
index 90546df5345..78b63af4df6 100644
--- a/scripts/qapi/pylintrc
+++ b/scripts/qapi/pylintrc
@@ -16,14 +16,14 @@  ignore-patterns=schema.py,
 # --enable=similarities". If you want to run only the classes checker, but have
 # no Warning level messages displayed, use "--disable=all --enable=classes
 # --disable=W".
-disable=fixme,
+disable=consider-using-f-string,
         missing-docstring,
         too-many-arguments,
         too-many-branches,
-        too-many-statements,
         too-many-instance-attributes,
-        consider-using-f-string,
+        too-many-statements,
         useless-option-value,
+        fixme,
 
 [REPORTS]