python: only check qemu/ subdir with flake8
authorJohn Snow <jsnow@redhat.com>
Tue, 29 Jun 2021 21:43:18 +0000 (17:43 -0400)
committerJohn Snow <jsnow@redhat.com>
Thu, 1 Jul 2021 01:54:04 +0000 (21:54 -0400)
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 <jsnow@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Tested-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-id: 20210629214323.1329806-11-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/setup.cfg
python/tests/flake8.sh

index e730f208d3e5bcf16c1b1f3789c27ab9ccd1bbd7..11f71d531204612bb3e01cf29e9676de843a3f78 100644 (file)
@@ -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
index 51e0788462be73bdee269a6e3b110e0cd7c1044e..1cd7d40fad8b30f4bc988a85c315c625a23313fa 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh -e
-python3 -m flake8
+python3 -m flake8 qemu/