ruff check

An extremely fast Python linter. check is the default command - it can be omitted everywhere. If no files or directories are specified, the current working directory is used by default. More information: https://docs.astral.sh/ruff/linter.

ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

ruff check --fix

ruff check --watch

ruff check --select {{ALL|rule_code1,rule_code2,...}}

ruff check --extend-select {{rule_code1,rule_code2,...}}

ruff check --ignore {{rule_code1,rule_code2,...}}

ruff check --select {{rule_code}} --add-noqa