Simple Python linter with YAML configuration.
pget install plack# Lint current directory
plack
# Lint specific files or directories
plack src/ tests/
plack main.py
# Use custom config
plack -d myconfig.yaml
# Reset to default config
plack --reset
# Override line length
plack -l 120 .
# Quiet mode
plack -q .Config file at ~/.config/plack/plack.yaml:
line_length: 88
indent_size: 4
max_blank_lines: 2
trailing_whitespace: true
final_newline: true
tab_indent: false| Code | Description |
|---|---|
| E001 | File not found |
| E002 | Cannot read file |
| L001 | Line too long |
| W001 | Trailing whitespace |
| B001 | Too many blank lines |
| I001 | Wrong indentation character |
| I002 | Indentation not multiple of indent_size |
| N001 | No newline at end of file |
| S001 | Syntax error |
-d, --config PATH Use custom YAML config file
--reset Reset to default configuration
--show-config Show current configuration
-r, --recursive Recursively lint directories (default)
--no-recursive Do not recurse into subdirectories
-l, --line-length N Override max line length
--no-color Disable colored output
-q, --quiet Only show issue count
-v, --version Show version
--apply Auto-fix issues in-place
--docs Show documentation
MIT