Changes between Version 8 and Version 9 of coding_rules
- Timestamp:
- 03/13/19 08:45:37 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
coding_rules
v8 v9 90 90 91 91 == Python == 92 93 As of now this is a proposition.94 92 95 PeP8 compliance should be keptthroughout 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): 96 94 - We allow lines of any length (E501) 97 95 - We don't enforce the space after "#" for comments (E262, E265) 98 - We still allow form module import * (F403) but I thinkwe should avoid those if possible96 - We still allow form module import * (F403) but we should avoid those if possible 99 97 - We bypass warning on undefined function (F405) this can probably be removed if we take care of the one above 98 flake8 allows you to track and highlight the syntax errors (through Elpy in Emacs, I guess it can be introduced in vim). 100 99 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: 100 If you install flake8, you can also run it in standalone to check the files in a directory: 104 101 {{{ 105 102 flake8 --ignore=E262,E265,F403,F405,E405,E501