All apps/Flake8

Flake8

flake8

A Python style guide enforcement tool.

Runs as flake8|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 14 fields

Lint Python files or directories with flake8 and choose which error codes to report. Plugin-specific options, formatters beyond a name and per-file ignores are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui flake8
Check Python styleExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories*
any
Max line length
79integer
Show source lines
--show-source
TasksEach one presets the form for one job
Check files
pathsmax_line_lengthshow_source
Summarise problems
pathsstatisticscount
ParametersOnly these flags are editable in the form
Files or directories
Python files or directories to check. Defaults to the current directory when empty.
path · positional 0 · repeatable
Only report codes
Comma-separated error code prefixes, e.g. E4,E51,W234.
string
--select
Ignore codes
Comma-separated codes. Replaces flake8's default ignore list.
string
--ignore
Also ignore codes
Comma-separated codes added to the default ignore list.
string
--extend-ignore
Exclude patterns
Comma-separated files or directories. Replaces the default exclude list.
string
--exclude
Also exclude
Comma-separated files or directories added to the default exclude list.
string
--extend-exclude
Max line length
integer · default: 79
--max-line-length
Max McCabe complexity
integer
--max-complexity
Show source lines
boolean
--show-source
Show statistics
boolean
--statistics
Print error count
boolean
--count
Always exit 0
boolean
--exit-zero
Config file
Use only this config file and ignore all others.
path
--config
Report file
path
--output-file
SourcesEvery flag above is checked against these
help
usage: flake8 [options] file file ... -v, --verbose Print more information about what is happening in flake8. --output-file OUTPUT_FILE Redirect report to a file. --config CONFIG Path to the config file that will be the authoritative config source. --isolated Ignore all configuration files. -q, --quiet Report on…
helpflake8 7.x (flake8 --help)

Before it fills your prompt, Otty checks the installed flake8 against its version. A form that does not match your version is not offered.