1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= py27 py35 py36
7 SDESC[py35]= Python style guide checker (PY 35)
8 SDESC[py36]= Python style guide checker (PY 36)
9 SDESC[py27]= Python style guide checker (PY 27)
10 HOMEPAGE= http://pep8.readthedocs.org/
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/p/pep8
15 DISTFILE[1]= pep8-1.7.0.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY35 PY36
22 OPTIONS_STANDARD= none
23 VOPTS[py35]= PY27=OFF PY35=ON PY36=OFF
24 VOPTS[py36]= PY27=OFF PY35=OFF PY36=ON
25 VOPTS[py27]= PY27=ON PY35=OFF PY36=OFF
33 [PY35].USES_ON= python:py35
35 [PY36].USES_ON= python:py36
37 [PY27].USES_ON= python:py27
39 [FILE:2713:descriptions/desc.single]
40 pep8 - Python style guide checker
41 =================================
43 pep8 is a tool to check your Python code against some of the style
44 conventions in `PEP 8`_.
46 .. _PEP 8: http://www.python.org/dev/peps/pep-0008/
52 * Plugin architecture: Adding new checks is easy.
54 * Parseable output: Jump to error location in your editor.
56 * Small: Just one Python file, requires only stdlib. You can use just
57 the pep8.py file for this purpose.
59 * Comes with a comprehensive test suite.
64 You can install, upgrade, uninstall pep8.py with these commands::
67 $ pip install --upgrade pep8
70 There's also a package for Debian/Ubuntu, but it's not always the
73 Example usage and output
74 ------------------------
78 $ pep8 --first optparse.py
79 optparse.py:69:11: E401 multiple imports on one line
80 optparse.py:77:1: E302 expected 2 blank lines, found 1
81 optparse.py:88:5: E301 expected 1 blank line, found 0
82 optparse.py:222:34: W602 deprecated form of raising exception
83 optparse.py:347:31: E211 whitespace before '('
84 optparse.py:357:17: E201 whitespace after '{'
85 optparse.py:472:29: E221 multiple spaces before operator
86 optparse.py:544:21: W601 .has_key() is deprecated, use 'in'
88 You can also make pep8.py show the source code for each error, and
89 even the relevant text from PEP 8::
91 $ pep8 --show-source --show-pep8 testsuite/E40.py
92 testsuite/E40.py:2:10: E401 multiple imports on one line
95 Imports should usually be on separate lines.
97 Okay: import os\nimport sys
101 Or you can display how often each error was found::
103 $ pep8 --statistics -qq Python-2.5/Lib
104 232 E201 whitespace after '['
105 599 E202 whitespace before ')'
106 631 E203 whitespace before ','
107 842 E211 whitespace before '('
108 2531 E221 multiple spaces before operator
109 4473 E301 expected 1 blank line, found 0
110 4006 E302 expected 2 blank lines, found 1
111 165 E303 too many blank lines (4)
112 325 E401 multiple imports on one line
113 3615 E501 line too long (82 characters)
114 612 W601 .has_key() is deprecated, use 'in'
115 1188 W602 deprecated form of raising exception
120 .. image:: https://api.travis-ci.org/PyCQA/pep8.png?branch=master
121 :target: https://travis-ci.org/PyCQA/pep8
124 .. image:: https://pypip.in/wheel/pep8/badge.png?branch=master
125 :target: https://pypi.python.org/pypi/pep8
128 * `Read the documentation <http://pep8.readthedocs.org/>`_
130 * `Fork me on GitHub <http://github.com/PyCQA/pep8>`_
143 a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900 79704 pep8-1.7.0.tar.gz