1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= py27 py38 py37
7 SDESC[py37]= Python style guide checker (PY 37)
8 SDESC[py38]= Python style guide checker (PY 38)
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.1.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY38 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py37]= PY27=OFF PY38=OFF PY37=ON
24 VOPTS[py38]= PY27=OFF PY38=ON PY37=OFF
25 VOPTS[py27]= PY27=ON PY38=OFF PY37=OFF
31 [PY37].USES_ON= python:py37
33 [PY38].USES_ON= python:py38
35 [PY27].USES_ON= python:py27
37 [FILE:2721:descriptions/desc.single]
38 pep8 - Python style guide checker
39 =================================
41 pep8 is a tool to check your Python code against some of the style
42 conventions in `PEP 8`_.
44 .. _PEP 8: http://www.python.org/dev/peps/pep-0008/
50 * Plugin architecture: Adding new checks is easy.
52 * Parseable output: Jump to error location in your editor.
54 * Small: Just one Python file, requires only stdlib. You can use just
55 the pep8.py file for this purpose.
57 * Comes with a comprehensive test suite.
62 You can install, upgrade, uninstall pep8.py with these commands::
65 $ pip install --upgrade pep8
68 There's also a package for Debian/Ubuntu, but it's not always the
71 Example usage and output
72 ------------------------
76 $ pep8 --first optparse.py
77 optparse.py:69:11: E401 multiple imports on one line
78 optparse.py:77:1: E302 expected 2 blank lines, found 1
79 optparse.py:88:5: E301 expected 1 blank line, found 0
80 optparse.py:222:34: W602 deprecated form of raising exception
81 optparse.py:347:31: E211 whitespace before '('
82 optparse.py:357:17: E201 whitespace after '{'
83 optparse.py:472:29: E221 multiple spaces before operator
84 optparse.py:544:21: W601 .has_key() is deprecated, use 'in'
86 You can also make pep8.py show the source code for each error, and
87 even the relevant text from PEP 8::
89 $ pep8 --show-source --show-pep8 testsuite/E40.py
90 testsuite/E40.py:2:10: E401 multiple imports on one line
93 Imports should usually be on separate lines.
95 Okay: import os\nimport sys
99 Or you can display how often each error was found::
101 $ pep8 --statistics -qq Python-2.5/Lib
102 232 E201 whitespace after '['
103 599 E202 whitespace before ')'
104 631 E203 whitespace before ','
105 842 E211 whitespace before '('
106 2531 E221 multiple spaces before operator
107 4473 E301 expected 1 blank line, found 0
108 4006 E302 expected 2 blank lines, found 1
109 165 E303 too many blank lines (4)
110 325 E401 multiple imports on one line
111 3615 E501 line too long (82 characters)
112 612 W601 .has_key() is deprecated, use 'in'
113 1188 W602 deprecated form of raising exception
118 .. image:: https://api.travis-ci.org/PyCQA/pep8.png?branch=master
119 :target: https://travis-ci.org/PyCQA/pep8
122 .. image:: https://pypip.in/wheel/pep8/badge.png?branch=master
123 :target: https://pypi.python.org/pypi/pep8
126 * `Read the documentation <http://pep8.readthedocs.org/>`_
128 * `Fork me on GitHub <http://github.com/PyCQA/pep8>`_
141 fe249b52e20498e59e0b5c5256aa52ee99fc295b26ec9eaa85776ffdb9fe6374 80334 pep8-1.7.1.tar.gz