Browse Source

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>
pull/121/head
John Snow 5 years ago
parent
commit
0d52c19a59
  1. 2
      python/setup.cfg
  2. 2
      python/tests/flake8.sh

2
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

2
python/tests/flake8.sh

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

Loading…
Cancel
Save