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
| Flag | Default | Description |
|---|---|---|
--select <rule,...> | all | Enable only the listed rules |
--ignore <rule,...> | Disable the listed rules | |
--fix | off | Auto-fix fixable violations in place |
--format <fmt> | text | Output format: text, json |
--help, -h | Print help |
Examples
Check all files:
bunpy checkCheck 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