CmdID

CmdID / Commands

ruff-check

An extremely fast Python linter. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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.

Run the linter on the given files or directories

ruff check path/to/file_or_directory1 path/to/file_or_directory2 ...Identify

Apply the suggested fixes, modifying the files in-place

ruff check --fixIdentify

Run the linter and re-lint on change

ruff check --watchIdentify

Only enable the specified rules (or all rules), ignoring the configuration file

ruff check --select ALLIdentify

Additionally enable the specified rules

ruff check --extend-select rule_code1,rule_code2,...Identify

Disable the specified rules

ruff check --ignore rule_code1,rule_code2,...Identify

Ignore all existing violations of a rule by adding # noqa directives to all lines that violate it

ruff check --select rule_code --add-noqaIdentify