gitlab CI: fix flake8 complaints
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 Jan 2021 01:15:51 +0000 (11:15 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 Jan 2021 02:02:46 +0000 (12:02 +1000)
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>
.gitlab-ci.yml
.gitlab-ci/ci.template
tools/libinput-measure-fuzz.py

index 449e54a64e4b00c6dd2bba00aa0e4656134cb7b5..b9fcdf2729b9a0616e060c55acd5e0aa5cdd7203 100644 (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')
 
 
 #
index b98e5161280c7c9fc122c5ad732c0f934e313c69..5c5cabd7bb351adece2130b428e1c03e895a7602 100644 (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 %}
 
index c392d74a7fbaa508b6e3d73423b096aac3fbc706..6cb9f893e8d744eda508fc18230ce89451ddbd42 100755 (executable)
@@ -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')