From 487d3db0a4cd94ad8fdaae438f0c1c3e000a6425 Mon Sep 17 00:00:00 2001 From: Pierre Equoy Date: Wed, 10 Apr 2024 10:24:29 +0800 Subject: [PATCH] Ignore E203 (Whitespace before ':') As explained in this issue[1], E203[2] is not PEP 8 compliant so it should be ignored when running flake8. Black is now being used in the codebase, and it takes care of the formatting. [1] https://github.com/psf/black/issues/315 [2] https://www.flake8rules.com/rules/E203.html --- checkbox-ng/plainbox/provider_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkbox-ng/plainbox/provider_manager.py b/checkbox-ng/plainbox/provider_manager.py index 88570bf4cf..49309524ff 100644 --- a/checkbox-ng/plainbox/provider_manager.py +++ b/checkbox-ng/plainbox/provider_manager.py @@ -1615,7 +1615,7 @@ def create_flake8_test(pyfile): """Creates the target for the monkey patched methods in Flake8Tests""" def run_flake8(self): - result = subprocess.run(["flake8", pyfile]) + result = subprocess.run(["flake8", "--extend-ignore=E203", pyfile]) self.assertEqual(result.returncode, 0) return run_flake8