| | 90 | |
| | 91 | == Python == |
| | 92 | |
| | 93 | As of now this is a proposition. |
| | 94 | |
| | 95 | PeP8 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 | |
| | 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: |
| | 104 | {{{ |
| | 105 | flake8 --ignore=E262,E265,F403,F405,E405,E501 |
| | 106 | }}} |
| | 107 | |