From: Peter Hutterer Date: Mon, 4 Jan 2021 01:15:51 +0000 (+1000) Subject: gitlab CI: fix flake8 complaints X-Git-Tag: 1.16.901~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba0aed7b2736e1f1d77ad0686d5e454f2a29837e;p=platform%2Fupstream%2Flibinput.git 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 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 449e54a6..b9fcdf27 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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') # diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index b98e5161..5c5cabd7 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -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 %} diff --git a/tools/libinput-measure-fuzz.py b/tools/libinput-measure-fuzz.py index c392d74a..6cb9f893 100755 --- a/tools/libinput-measure-fuzz.py +++ b/tools/libinput-measure-fuzz.py @@ -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')