]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build-aux: skip E203 and W503 flake8 checks
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Jan 2023 18:01:59 +0000 (13:01 -0500)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Nov 2023 18:06:34 +0000 (14:06 -0400)
commit72a5ccedf0810bcb9099eb3ab13336950b9115e0
treea7c0d3023ed9f58bda305e490268d9dc3151b018
parent07e18c18a4984211c20d62e2be1c2b9396af0209
build-aux: skip E203 and W503 flake8 checks

The flake8 check W503 does not want a line break before
binary operator. This is contrary to the style that the
'black' formatting tool wants to use. Defer to 'black'
as it is intended to be an opinionated formatting tool
standardizing python code style, and thus not to be
customized per project.

The flake8 check E203 does not want whitespace before
a ':'. This is, however, desirable when indexing array
slices eg

   self.lookahead[skip : skip + 1]

which is a format that 'black' produces.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
build-aux/syntax-check.mk