<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Python%2Fpep8</id>
	<title>Python/pep8 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Python%2Fpep8"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Python/pep8&amp;action=history"/>
	<updated>2026-05-06T09:08:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Python/pep8&amp;diff=5778&amp;oldid=prev</id>
		<title>Kenneth: /* pep8 */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Python/pep8&amp;diff=5778&amp;oldid=prev"/>
		<updated>2020-12-10T19:21:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;pep8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== pycodestyle ==&lt;br /&gt;
&lt;br /&gt;
See [[Python/pycodestyle]]&lt;br /&gt;
&lt;br /&gt;
 pep8 has been renamed to pycodestyle (GitHub issue #466)&lt;br /&gt;
 Use of the pep8 tool will be removed in a future release.&lt;br /&gt;
 Please install and use `pycodestyle` instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== pep8 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Python Package Index : pep8 0.6.1 - http://pypi.python.org/pypi/pep8&lt;br /&gt;
:Python style guide checker&lt;br /&gt;
:pep8 is a tool to check your Python code against some of the style conventions in PEP 8.&lt;br /&gt;
&lt;br /&gt;
PEP 8 -- Style Guide for Python Code - http://www.python.org/dev/peps/pep-0008/&lt;br /&gt;
:This document gives coding conventions for the Python code comprising the&lt;br /&gt;
standard library in the main Python distribution.  Please see the&lt;br /&gt;
companion informational PEP describing style guidelines for the C code in&lt;br /&gt;
the C implementation of Python.&lt;br /&gt;
&lt;br /&gt;
Apt Installation:&lt;br /&gt;
 apt-get install pep8&lt;br /&gt;
&lt;br /&gt;
pip install:&lt;br /&gt;
 pip install pep8&lt;br /&gt;
&lt;br /&gt;
Manual Installation:&lt;br /&gt;
 mkdir -p ~/.src ; cd ~/.src&lt;br /&gt;
 wget http://pypi.python.org/packages/source/p/pep8/pep8-0.6.1.tar.gz#md5=49380cdf6ba2e222e8630cb0afe29d66 --no-check-certificate&lt;br /&gt;
 tar -zvxf pep8-0.6.1.tar.gz&lt;br /&gt;
 cd pep8-0.6.1&lt;br /&gt;
 sudo python setup.py install  # requires setuptools&lt;br /&gt;
&lt;br /&gt;
NOTE: Make sure to fix the &amp;#039;#!/usr/bin/python&amp;#039; in /opt/python26/bin/pep8&lt;br /&gt;
Executable:&lt;br /&gt;
 /opt/python26/bin/pep8&lt;br /&gt;
&lt;br /&gt;
Fix python version used:&lt;br /&gt;
 sudo sed -i &amp;#039;s%#!/usr/bin/python%#!/usr/bin/env python%&amp;#039; /opt/python26/bin/pep8&lt;br /&gt;
&lt;br /&gt;
 NOTE: modify first line:&lt;br /&gt;
   #!/usr/bin/python&lt;br /&gt;
 to&lt;br /&gt;
   #!/usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
Example usage:&lt;br /&gt;
 $ pep8 animal.py&lt;br /&gt;
 animal.py:2:3: E111 indentation is not a multiple of four&lt;br /&gt;
 animal.py:6:3: E301 expected 1 blank line, found 0&lt;br /&gt;
 animal.py:139:80: E501 line too long (80 characters)&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
  -r, --repeat         show all occurrences of the same error&lt;br /&gt;
  --show-source        show source code for each error&lt;br /&gt;
  --show-pep8          show text of PEP 8 for each error&lt;br /&gt;
&lt;br /&gt;
Ignore long lines:&lt;br /&gt;
 pep8 --ignore E501 animal.py&lt;br /&gt;
&lt;br /&gt;
Alias:&lt;br /&gt;
 alias pep8=&amp;quot;pep8 --ignore E501&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Change max line length to 120:&lt;br /&gt;
 sudo sed -i &amp;#039;s/MAX_LINE_LENGTH = 79/MAX_LINE_LENGTH = 119/g&amp;#039; /opt/python27/lib/python2.7/site-packages/pep8-0.6.1-py2.7.egg/pep8.py&lt;br /&gt;
&lt;br /&gt;
 # on other systems&lt;br /&gt;
 sudo sed -i &amp;#039;s/MAX_LINE_LENGTH = 79/MAX_LINE_LENGTH = 119/g&amp;#039; usr/lib/python2.6/site-packages/pep8.py&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>