--config [config] | |
--select [select] | |
--extend-select [extend_select] | |
--ignore [ignore] | |
--extend-ignore [extend_ignore] | |
--exclude [exclude] | |
--extend-exclude [extend_exclude] | |
--fixable [fixable] | |
--unfixable [unfixable] | |
--per-file-ignores [per_file_ignores] | |
--format [format] | |
--stdin-filename [stdin_filename] | |
--cache-dir [cache_dir] | |
--dummy-variable-rgx [dummy_variable_rgx] | |
--target-version [target_version] | |
--line-length [line_length] | |
--explain [explain] | |
--generate-shell-completion [generate_shell_completion] | |
-v, --verbose | Enable verbose logging |
-q, --quiet | Print lint violations, but nothing else |
-s, --silent | Disable all logging (but still exit with status code "1" upon detecting lint violations) |
-e, --exit-zero | Exit with status code "0", even upon detecting lint violations |
-w, --watch | Run in watch mode by re-running whenever files change |
--fix | Attempt to automatically fix lint violations |
--no-fix | |
--fix-only | Fix any fixable lint violations, but don't report on leftover violations. Implies `--fix` |
--no-fix-only | |
--diff | Avoid writing any fixed files back; instead, output a diff for each changed file to stdout |
-n, --no-cache | Disable cache reads |
--isolated | Ignore all configuration files |
--show-source | Show violations with source code |
--no-show-source | |
--respect-gitignore | Respect file exclusions via `.gitignore` and other standard ignore files |
--no-respect-gitignore | |
--force-exclude | Enforce exclusions, even for paths passed to Ruff directly on the command-line |
--no-force-exclude | |
--update-check | Enable or disable automatic update checks |
--no-update-check | |
--add-noqa | Enable automatic additions of `noqa` directives to failing lines |
--clean | Clear any caches in the current directory or any subdirectories |
--show-files | See the files Ruff will be run against with the current settings |
--show-settings | See the settings Ruff will use to lint a given Python file |
-h, --help | Print help |
-V, --version | Print version |