Jelajahi Sumber

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 <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>
John Snow 4 tahun lalu
induk
melakukan
0d52c19a59
2 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 0 2
      python/setup.cfg
  2. 1 1
      python/tests/flake8.sh

+ 0 - 2
python/setup.cfg

@@ -62,8 +62,6 @@ console_scripts =
 [flake8]
 [flake8]
 extend-ignore = E722  # Prefer pylint's bare-except checks to flake8's
 extend-ignore = E722  # Prefer pylint's bare-except checks to flake8's
 exclude = __pycache__,
 exclude = __pycache__,
-          .venv,
-          .tox,
 
 
 [mypy]
 [mypy]
 strict = True
 strict = True

+ 1 - 1
python/tests/flake8.sh

@@ -1,2 +1,2 @@
 #!/bin/sh -e
 #!/bin/sh -e
-python3 -m flake8
+python3 -m flake8 qemu/