Scroll to navigation

PEP8(1) User Commands PEP8(1)

NAME

pep8 - A tool to check your Python code against some of the style conventions in PEP 8.

SYNOPSIS

pep8 [options] input ...

OPTIONS

show program's version number and exit
show this help message and exit
print status messages, or debug with -vv
report only file names, or nothing with -qq
exclude files or directories which match these comma separated patterns (default: .svn,CVS,.bzr,.hg,.git,__pycache__)
when parsing directories, only check filenames matching these comma separated patterns (default: *.py)
select errors and warning (e.g. E,W6)
skip errors and warnings (e.g. E4,W)
show first occurrence of each error
(obsolete) show all occurrences of the same error
show source code for each error
show text of PEP 8 for each error (implies --first)
count errors and warnings
print total number of errors and warnings to standard error and set exit code to 1 if total is not null
set maximum allowed line length (default: 79)
hang closing bracket instead of matching indentation of opening bracket's line
set the error format [default|pylint|<custom>]
report only lines changed according to the unified diff received on STDIN
measure processing speed
user config file location (default: $HOME/.config/pep8)

USAGE EXAMPLES

% pep8 --statistics -qq example/lib/

% pep8 --show-source --show-pep8 foo.py

AUTHOR

This manual page was written by David Watson <dwatson@debian.org> and Michael Prokop <mika@debian.org>.

July 2014 pep8 1.5.7