diff options
author | John Snow <jsnow@redhat.com> | 2021-06-29 17:43:18 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2021-06-30 21:54:04 -0400 |
commit | 0d52c19a599a45c800fb58f3ad359f6472a18e3f (patch) | |
tree | b0d50dc1f4a908ca22850aeaf4641bbca580a95f /python | |
parent | 205d7219f3ba9971149b6fa45a155866d9e889db (diff) | |
download | qemu-0d52c19a599a45c800fb58f3ad359f6472a18e3f.zip |
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/setup.cfg | 2 | ||||
-rwxr-xr-x | python/tests/flake8.sh | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/python/setup.cfg b/python/setup.cfg index e730f208d3..11f71d5312 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 51e0788462..1cd7d40fad 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/ |