gitlab CI: fix flake8 complaints

tools/libinput-measure-fuzz.py:212:15:
 F523 '...'.format(...) has unused arguments at position(s): 1

But the E741 is better turned off in general:
  tools/libinput-measure-fuzz.py:319:29: E741 ambiguous variable name 'l'

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-01-04 11:15:51 +10:00
parent 18c9265224
commit ba0aed7b27
3 changed files with 3 additions and 3 deletions

View file

@ -753,7 +753,7 @@ flake8@fedora:32:
before_script:
- dnf install -y python3-flake8
script:
- flake8-3 --ignore=W501,E501,W504 $(git grep -l '^#!/usr/bin/env python3')
- flake8-3 --ignore=W501,E501,W504,E741 $(git grep -l '^#!/usr/bin/env python3')
#

View file

@ -548,7 +548,7 @@ flake8@{{distro.name}}:{{version}}:
before_script:
- dnf install -y python3-flake8
script:
- flake8-3 --ignore=W501,E501,W504 $(git grep -l '^#!/usr/bin/env python3')
- flake8-3 --ignore=W501,E501,W504,E741 $(git grep -l '^#!/usr/bin/env python3')
{% endfor %}

View file

@ -209,7 +209,7 @@ def handle_existing_entry(device, fuzz):
return False
else:
print_red('not found')
print('Checking in {}... '.format(DEFAULT_HWDB_FILE, template), end='')
print('Checking in {}... '.format(DEFAULT_HWDB_FILE), end='')
entry, prefix, lineno = check_file_for_lines(DEFAULT_HWDB_FILE, template)
if entry is not None:
print_green('found')