User Tools

Site Tools


programming:python

Table of Contents

Python

Formatting

PEP 8

PEP 8 is the coding style adhered to by python developers for the python binaries and standard library code. You can read the guide in its entirety or a helpful summary with examples.

Main Highlights:

The autopep8 package “automatically formats Python code to conform to the PEP 8 style guide”.

Atom

  • Setting/ Preferences > Packages > Search “language-python” > Settings > Python Grammar > Tab Length > Set to “4”
  • Setting/ Preferences > Editor > Tab Type > Set to “Soft”
1)
Tabs = sin
programming/python.txt · Last modified: 2018/09/03 17:25 (external edit)