mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ test-utils:
|
|||
extends:
|
||||
- .ubuntu-before_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
|
||||
- make -C parser/tst gen_dbus
|
||||
- make -C parser/tst gen_xtrans
|
||||
|
|
|
@ -29,7 +29,7 @@ PYMODULES = $(wildcard apparmor/*.py apparmor/rule/*.py)
|
|||
|
||||
MANPAGES = ${TOOLS:=.8} logprof.conf.5
|
||||
|
||||
PYFLAKES ?= pyflakes3
|
||||
PYFLAKES ?= flake8 --ignore E501,E241,W503
|
||||
|
||||
all: docs
|
||||
$(MAKE) -C po all
|
||||
|
|
Loading…
Add table
Reference in a new issue