OSDN Git Service

qapi: delint using flake8
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:30 +0000 (12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:47 +0000 (11:37 +0200)
commit42c0dd122299cf2aa6ef8668afe95f4c332833df
treeb358ccdfba50b03b6aabd2ffecbc17de05d72843
parent67fea575023a9b2871414857770aafd334a6e39d
qapi: delint using flake8

Petty style guide fixes and line length enforcement.  Not a big win, not
a big loss, but flake8 passes 100% on the qapi module, which gives us an
easy baseline to enforce hereafter.

A note on the flake8 exception: flake8 will warn on *any* bare except,
but pylint's is context-aware and will suppress the warning if you
re-raise the exception.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-9-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/.flake8 [new file with mode: 0644]
scripts/qapi/commands.py
scripts/qapi/schema.py
scripts/qapi/visit.py