Skip to content

Commit

Permalink
[REF] travis_run_flake8.cfg: disable E203 whitespace before ':'
Browse files Browse the repository at this point in the history
E203 is not PEP 8 compliant, we should tell Flake8 to ignore these warnings. https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements
This change allows us to use MQT on code formatted by black and thus opens the door to the use of this tool on OCA repositories.
  • Loading branch information
lmignon committed Apr 2, 2019
1 parent 642e120 commit d291bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion travis/cfg/travis_run_flake8.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# F811 is legal in odoo 8 when we implement 2 interfaces for a method
# F999 pylint support this case with expected tests
# W503 changed by W504 and OCA prefers allow both
ignore = E123,E133,E226,E241,E242,F811,F601,W503,W504
# E203: whitespace before ':' (black behaviour and not pep8 compliant)
ignore = E123,E133,E226,E241,E242,F811,F601,W503,W504,E203
max-line-length = 79
exclude = __unported__,__init__.py,examples

0 comments on commit d291bf9

Please sign in to comment.