Changes between Version 18 and Version 19 of Submitting/Python


Ignore:
Timestamp:
Dec 27, 2018 1:57:04 PM (9 months ago)
Author:
neteler
Comment:

+Editor settings for 4-space indentation

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/Python

    v18 v19  
    6262== Style ==
    6363
     64Use 4-space indentation (GNU Emacs python-mode default). **Do not use tabs (tabulators) at all**.
     65Note that Python determines nesting based upon indentation, so it is quite crucial to be consistent, i.e. use given rules.
     66
     67=== Editor settings for 4-space indentation ===
     68
     69The correct editor settings for Python indentation
     70
     71 * Geany editor:
     72   *  Edit > Preferences > Editor > Intentation tab > Type: Spaces
     73 * GNU Emacs:
     74   * python-mode default
     75 * spyder ...
     76
     77=== PEP8 standard Style ===
     78
    6479Follow PEP8 standard and use `pep8` tool to check compliance of your code to this standard.
    6580Note that not all code is currently compliant to complete PEP8, so we are using a custom configuration stored in `tools/pep8config.txt`, so use:
     
    7691
    7792The best practice is to use pep8 with default configuration (i.e., without custom configuration file) for new files and new code in old files.
    78 
    79 Use 4-space indentation (GNU Emacs python-mode default). Do not use tabs (tabulators) at all.
    80 Note that Python determines nesting based upon indentation, so it is quite crucial to be consistent, i.e. use given rules.
    8193
    8294Do not fix (intentionally or unintentionally) existing style issues in code (at lines) you are not changing.