diff options
author | John Snow | 2020-10-09 18:15:30 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-10-10 11:37:47 +0200 |
commit | 42c0dd122299cf2aa6ef8668afe95f4c332833df (patch) | |
tree | b358ccdfba50b03b6aabd2ffecbc17de05d72843 /scripts/qapi/.flake8 | |
parent | qapi: enforce import order/styling with isort (diff) | |
download | qemu-42c0dd122299cf2aa6ef8668afe95f4c332833df.tar.gz qemu-42c0dd122299cf2aa6ef8668afe95f4c332833df.tar.xz qemu-42c0dd122299cf2aa6ef8668afe95f4c332833df.zip |
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>
Diffstat (limited to 'scripts/qapi/.flake8')
-rw-r--r-- | scripts/qapi/.flake8 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qapi/.flake8 b/scripts/qapi/.flake8 new file mode 100644 index 0000000000..6b158c68b8 --- /dev/null +++ b/scripts/qapi/.flake8 @@ -0,0 +1,2 @@ +[flake8] +extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's |