mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
utils: switch pyflakes3 to flake8 to improve python checks
The following exceptions were added to flake8 since they have several expected uses in the tools and their tests: E501: Line lengths are recommended to be no greater than 79 characters. E241: Multiple spaces after ',' W503: Line break occurred before a binary operator Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
cec9ae6dff
commit
e511b05c59
@ -77,7 +77,7 @@ test-utils:
|
|||||||
extends:
|
extends:
|
||||||
- .ubuntu-before_script
|
- .ubuntu-before_script
|
||||||
script:
|
script:
|
||||||
- apt-get install --no-install-recommends -y libc6-dev libjs-jquery libjs-jquery-throttle-debounce libjs-jquery-isonscreen libjs-jquery-tablesorter pyflakes3 python3-coverage python3-notify2 python3-psutil python3-setuptools
|
- apt-get install --no-install-recommends -y libc6-dev libjs-jquery libjs-jquery-throttle-debounce libjs-jquery-isonscreen libjs-jquery-tablesorter flake8 python3-coverage python3-notify2 python3-psutil python3-setuptools
|
||||||
# See apparmor/apparmor#221
|
# See apparmor/apparmor#221
|
||||||
- make -C parser/tst gen_dbus
|
- make -C parser/tst gen_dbus
|
||||||
- make -C parser/tst gen_xtrans
|
- make -C parser/tst gen_xtrans
|
||||||
|
@ -29,7 +29,7 @@ PYMODULES = $(wildcard apparmor/*.py apparmor/rule/*.py)
|
|||||||
|
|
||||||
MANPAGES = ${TOOLS:=.8} logprof.conf.5
|
MANPAGES = ${TOOLS:=.8} logprof.conf.5
|
||||||
|
|
||||||
PYFLAKES ?= pyflakes3
|
PYFLAKES ?= flake8 --ignore E501,E241,W503
|
||||||
|
|
||||||
all: docs
|
all: docs
|
||||||
$(MAKE) -C po all
|
$(MAKE) -C po all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user