Changes between Version 7 and Version 8 of coding_rules


Ignore:
Timestamp:
03/13/19 03:14:53 (6 years ago)
Author:
bdef
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • coding_rules

    v7 v8  
    8888%      outputs=hello()
    8989}}}
     90
     91== Python ==
     92 
     93As of now this is a proposition.
     94
     95PeP8 compliance should be kept throughout the code with the exceptions below (with flake8 codes):
     96 - We allow lines of any length (E501)
     97 - 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
     99 - We bypass warning on undefined function (F405) this can probably be removed if we take care of the one above
     100
     101Installing flake8 allow to track and highlight the syntax errors (through Elpy in Emacs, I guess it can be introduced in vim).
     102
     103If you install flake8 you can also run it standalone to check the files in a directory:
     104{{{
     105flake8  --ignore=E262,E265,F403,F405,E405,E501
     106}}}
     107
    90108== Variable/Enum/Functions Names ==
    91109