Skip to content

Commit

Permalink
Ignore E203 (Whitespace before ':')
Browse files Browse the repository at this point in the history
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] psf/black#315
[2] https://www.flake8rules.com/rules/E203.html
  • Loading branch information
pieqq committed Apr 10, 2024
1 parent bb3a1be commit 487d3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkbox-ng/plainbox/provider_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 487d3db

Please sign in to comment.