mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
they see me stylin'
This commit is contained in:
+10
-4
@@ -451,11 +451,17 @@ group <http://artifex.org/~hblanks/talks/2011/pep20_by_example.pdf>`_.
|
|||||||
PEP 8
|
PEP 8
|
||||||
-----
|
-----
|
||||||
|
|
||||||
:pep:`8` is the de-facto code style guide for Python.
|
:pep:`8` is the de-facto code style guide for Python. A high quality,
|
||||||
|
easy-to-read version of PEP 8 is also available at `pep8.org <http://pep8.org/>`_.
|
||||||
|
|
||||||
Conforming your Python code to PEP 8 is generally a good idea and helps make
|
This is highly recommended reading. The entire Python community does their
|
||||||
code more consistent when working on projects with other developers. There
|
best to adhere to the guidelines laidout within this document. Some project
|
||||||
is a command-line program, `pep8 <https://github.com/jcrocholl/pep8>`_,
|
may sway from it from time to time, while others may
|
||||||
|
`ammend its recommendations <http://docs.python-requests.org/en/master/dev/contributing/#kenneth-reitz-s-code-style>`_.
|
||||||
|
|
||||||
|
That being said, conforming your Python code to PEP 8 is generally a good
|
||||||
|
idea and helps make code more consistent when working on projects with other
|
||||||
|
developers. There is a command-line program, `pep8 <https://github.com/jcrocholl/pep8>`_,
|
||||||
that can check your code for conformance. Install it by running the following
|
that can check your code for conformance. Install it by running the following
|
||||||
command in your terminal:
|
command in your terminal:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user