Skip to content

bunpy check

bunpy check [flags] [path...]

Description

Runs the built-in linter and checker over Python source files. Reports undefined names, unused imports, type mismatches (where inferable), and style violations.

Flags

FlagDefaultDescription
--select <rule,...>allEnable only the listed rules
--ignore <rule,...>Disable the listed rules
--fixoffAuto-fix fixable violations in place
--format <fmt>textOutput format: text, json
--help, -hPrint help

Examples

Check all files:

bunpy check

Check a directory:

bunpy check src/

Auto-fix what can be fixed:

bunpy check --fix src/

CI: emit machine-readable JSON:

bunpy check --format json > lint.json