PYTHON3(1)
π PYTHON3(1) β the manual, but make it make sense
okay bestie, sit down, hydrate, because today we're reading the manual page for python3 (that's the manual name right there in the corner, and yes we're keeping it, she's iconic) and honestly? it's giving tooling. it's giving your linter has opinions. let's get into it π
β¨ NAME β¨
python3 autopep8.py β autopep8
like. that's the whole name. no notes. π
πΈ DESCRIPTION πΈ
so here's the vibe: this is what you type at her, fr fr β
usage: autopep8 [-h] [--version] [-v] [-d] [-i] [--global-config
filename]
[--ignore-local-config] [-r] [-j n] [-p n] [-a] [--experimental]
[--exclude globs] [--list-fixes] [--ignore errors] [--select
errors] [--max-line-length n] [--line-range line line]
[--hang-closing] [--exit-code] [files ...]
Automatically formats Python code to conform to the PEP 8 style guide.
that's it. that's the mission statement. she takes your chaos and she makes it PEP 8 shaped. slay. β¨
π¦ positional arguments:
filesβ the files you want formatted, OR'-'if you're feeding her from standard in. yes, a single lil dash. she knows what it means. π«Ά
π OPTIONS π
one bullet per flag, no skipping, no summarizing, we are thorough in this household:
-h,--helpβ show this help message and then dip. bye! π--versionβ show the program's version number and exit. classic.-v,--verboseβ print verbose messages. and here's the cute part: multiple-vresult in more verbose messages, so you can just keep stacking them like accessories. π-d,--diffβ print the diff for the fixed source. show me the receipts, bestie.-i,--in-placeβ make changes to files in place. she's editing the actual file, no take-backs. π--global-configfilename β path to a global pep8 config file. and listen: if this file does not exist then this is ignored (default:~/.config). she's not gonna fight you about it.--ignore-local-configβ don't look for and apply local config files. if you don't pass this, defaults get updated with any config files found in the project's root directory. so like, passing it = "do NOT read the room." π-r,--recursiveβ run recursively over directories. β οΈ heads up: must be used with--in-placeor--diff, no exceptions, she said what she said.-j,--jobsn β number of parallel jobs. if the value is less than1, she matches your CPU count. multitasking queen. π₯-p,--pep8-passesn β maximum number of additional pep8 passes (default:infinite). yes. infinite. she will keep going. she's committed.-a,--aggressiveβ enable non-whitespace changes. and like-v, it stacks: multiple-aresult in more aggressive changes. more-a= more unhinged = more fixed. π--experimentalβ enable experimental fixes. it's giving beta, it's giving we're trying something, be aware.--excludeglobs β exclude file/directory names that match these comma-separated globs. not you. not today. π«--list-fixesβ list codes for fixes. this is the cheat sheet used by--ignoreand--select.--ignoreerrors β do not fix these errors/warnings (default:E226,E24,W50,W690). copy those exactly, bestie, they're real.--selecterrors β fix ONLY these errors/warnings (e.g.E4,W). tunnel vision, but make it fashion.--max-line-lengthn β set maximum allowed line length (default:79). yes,79. that's the number. do not fight her on the number. πΈ--line-range,--rangeline line β only fix errors found within this inclusive range of line numbers (e.g.1 99). and important: line numbers are indexed at 1. not 0. one. π§--hang-closingβ hang-closing option passed to pycodestyle. that's literally it, it's a passthrough, she's just the messenger.--exit-codeβ change to behavior of exit code. here's the whole deal, slowly: default behavior of return value:0is no differences,1is error exit. but when you add this option, return2. and2is exists differences. so like.0= we're chill,1= something went wrong,2= there ARE differences and she wants you to know. π
π SEE ALSO π
the full documentation for python3 is maintained as a Texinfo manual. if the info and python3 programs are properly installed at your site, this command:
info python3
should give you access to the complete manual. so go read the whole thing, she has lore. π
and that's the page, bestie. version python3 autopep8.py 2.3.2, dated January 2025 β a true icon of the era, and we love her for it. periodt. πβ¨ππ¦
π¦ where this page comes from
- debian trixie: python3-autopep8 2.3.2-1 Β· MIT
- ubuntu questing: python3-autopep8 2.3.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms