From: John Snow Date: Tue, 29 Jun 2021 21:43:18 +0000 (-0400) Subject: python: only check qemu/ subdir with flake8 X-Git-Tag: v6.1.0-rc0~48^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d52c19a599a45c800fb58f3ad359f6472a18e3f;p=thirdparty%2Fqemu.git python: only check qemu/ subdir with flake8 flake8 is a little eager to check everything it can. Limit it to checking inside the qemu namespace directory only. Update setup.cfg now that the exclude patterns are no longer necessary. Signed-off-by: John Snow Reviewed-by: Willian Rampazzo Reviewed-by: Wainer dos Santos Moschetta Tested-by: Wainer dos Santos Moschetta Message-id: 20210629214323.1329806-11-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/python/setup.cfg b/python/setup.cfg index e730f208d3e..11f71d53120 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -62,8 +62,6 @@ console_scripts = [flake8] extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's exclude = __pycache__, - .venv, - .tox, [mypy] strict = True diff --git a/python/tests/flake8.sh b/python/tests/flake8.sh index 51e0788462b..1cd7d40fad8 100755 --- a/python/tests/flake8.sh +++ b/python/tests/flake8.sh @@ -1,2 +1,2 @@ #!/bin/sh -e -python3 -m flake8 +python3 -m flake8 qemu/