Changes between Version 8 and Version 9 of coding_rules


Ignore:
Timestamp:
03/13/19 08:45:37 (6 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • coding_rules

    v8 v9  
    9090
    9191== Python ==
    92  
    93 As of now this is a proposition.
    9492
    95 PeP8 compliance should be kept throughout the code with the exceptions below (with flake8 codes):
     93[https://www.python.org/dev/peps/pep-0008/ PeP8 compliance] should be used throughout the code with the exceptions below (with flake8 codes):
    9694 - We allow lines of any length (E501)
    9795 - We don't enforce the space after "#" for comments (E262, E265)
    98  - We still allow form module import * (F403) but I think we should avoid those if possible
     96 - We still allow form module import * (F403) but we should avoid those if possible
    9997 - We bypass warning on undefined function (F405) this can probably be removed if we take care of the one above
     98flake8 allows you to track and highlight the syntax errors (through Elpy in Emacs, I guess it can be introduced in vim).
    10099
    101 Installing flake8 allow to track and highlight the syntax errors (through Elpy in Emacs, I guess it can be introduced in vim).
    102 
    103 If you install flake8 you can also run it standalone to check the files in a directory:
     100If you install flake8, you can also run it in standalone to check the files in a directory:
    104101{{{
    105102flake8  --ignore=E262,E265,F403,F405,E405,E501