PEP8(1)
π PEP8(1) β the pep8 girlie's manual π
okay so bestie, welcome to the pep8 manual page, section 1, User Commands. this is your girl's whole personality: a tool to check your Python code against some of the style conventions in PEP 8. yes, those conventions. the ones your linter has opinions about. she's iconic, she's picky, she's here to help π
β¨ NAME β¨
pep8 β A tool to check your Python code against some of the style conventions in PEP 8.
fr fr that's the whole gig. she reads your Python, she compares it to the vibe rules in PEP 8, she tells you what's giving messy πΈ
π¦ SYNOPSIS π¦
pep8 [options] input ...
that's it. options first if you want them, then the input β files, directories, whatever you're pointing her at π«Ά
π OPTIONS π
--versionβ show program's version number and exit. short and sweet, she tells you who she is and dips β¨-h,--helpβ show this help message and exit. your bestie explaining herself, in terminal form π-v,--verboseβ print status messages, or debug with-vv. one-vfor the tea, two-vs for the whole tea π-q,--quietβ report only file names, or nothing with-qq. she's keeping it lowkey.-qqis her not speaking at all, which honestly? mood π- *
--exclude=patterns* β exclude files or directories which match these comma separated patterns (default:.svn,CVS,.bzr,.hg,.git,__pycache__). she does NOT want to look in your.gitfolder, bestie, that's not the vibe π - *
--filename=patterns* β when parsing directories, only check filenames matching these comma separated patterns (default:*.py). only the.pygirlies get checked when she's walking a directory π - *
--select=errors* β select errors and warning (e.g.E,W6). pick and choose which problems you want to hear about β¨ - *
--ignore=errors* β skip errors and warnings (e.g.E4,W). the block button, basically π« --firstβ show first occurrence of each error. one and done, no repeats, she said it once π-r,--repeatβ (obsolete) show all occurrences of the same error. yeah she's obsolete bestie, she's a legacy icon but she's legacy π--show-sourceβ show source code for each error. she shows you the exact line, receipts and all π§Ύ--show-pep8β show text of PEP 8 for each error (implies--first). not only does she clock it, she cites the source. academic baddie π--statisticsβ count errors and warnings. the numbers, the data, the chart of your crimes π--countβ print total number of errors and warnings to standard error and set exit code to1if total is not null. total count, and if it ain't zero, exit code says1π₯- *
--max-line-length=n* β set maximum allowed line length (default:79). seventy-nine. she has standards and the standards are seventy-nine π --hang-closingβ hang closing bracket instead of matching indentation of opening bracket's line. the hanging indent aesthetic, she supports it π¦- *
--format=format* β set the error format [default|pylint|<custom>]. you pick the outfit the errors come dressed in π --diffβ report only lines changed according to the unified diff received onSTDIN. feed her a diff through stdin and she'll only clock what actually changed π--benchmarkβ measure processing speed. how fast is she running? she's tracking it β‘- *
--config=path* β user config file location (default:$HOME/.config/pep8). her settings live at$HOME/.config/pep8unless you say otherwise π
πΈ USAGE EXAMPLES πΈ
Display how often each error was found:
% pep8 --statistics -qq example/lib/
Show source code and more verbose explanation from PEP 8:
% pep8 --show-source --show-pep8 foo.py
look at her go. receipts AND citations. main character energy, no cap π
π AUTHOR π
This manual page was written by David Watson <dwatson@debian.org> and Michael Prokop <mika@debian.org>.
okay so that's the whole page bestie, you're fully caught up β¨ this manual page is from pep8 version 1.5.7, dated July 2014 β a vintage queen who still ate, and we love her for it. go forth and fix your line lengths, she's watching ππ
π¦ where this page comes from
- ubuntu jammy: pep8 1.7.1-9ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms