Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 57 additions & 54 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,15 +548,16 @@ Log levels:
detecting diagnostics)

Global options:
--config <CONFIG_OPTION>
Either a path to a TOML configuration file (`pyproject.toml` or
`ruff.toml`), or a TOML `<KEY> = <VALUE>` pair (such as you might
find in a `ruff.toml` configuration file) overriding a specific
configuration option. Overrides of individual settings using this
option always take precedence over all configuration files, including
configuration files that were also specified using `--config`
--isolated
Ignore all configuration files
--config <CONFIG_OPTION> Either a path to a TOML configuration file
(`pyproject.toml` or `ruff.toml`), or a TOML `<KEY>
= <VALUE>` pair (such as you might find in a
`ruff.toml` configuration file) overriding a
specific configuration option. Overrides of
individual settings using this option always take
precedence over all configuration files, including
configuration files that were also specified using
`--config`
--isolated Ignore all configuration files

For help with a specific command, see: `ruff help <command>`.
```
Expand Down Expand Up @@ -628,39 +629,39 @@ Options:
Print help

Rule selection:
--select <RULE_CODE>
--select <RULE_CODE>
Comma-separated list of rule codes to enable (or ALL, to enable all
rules)
--ignore <RULE_CODE>
--ignore <RULE_CODE>
Comma-separated list of rule codes to disable
--extend-select <RULE_CODE>
--extend-select <RULE_CODE>
Like --select, but adds additional rule codes on top of those already
specified
--per-file-ignores <PER_FILE_IGNORES>
--per-file-ignores <PER_FILE_IGNORES>
List of mappings from file pattern to code to exclude
--extend-per-file-ignores <EXTEND_PER_FILE_IGNORES>
--extend-per-file-ignores <EXTEND_PER_FILE_IGNORES>
Like `--per-file-ignores`, but adds additional ignores on top of
those already specified
--fixable <RULE_CODE>
--fixable <RULE_CODE>
List of rule codes to treat as eligible for fix. Only applicable when
fix itself is enabled (e.g., via `--fix`)
--unfixable <RULE_CODE>
--unfixable <RULE_CODE>
List of rule codes to treat as ineligible for fix. Only applicable
when fix itself is enabled (e.g., via `--fix`)
--extend-fixable <RULE_CODE>
--extend-fixable <RULE_CODE>
Like --fixable, but adds additional rule codes on top of those
already specified

File selection:
--exclude <FILE_PATTERN>
--exclude <FILE_PATTERN>
List of paths, used to omit files and/or directories from analysis
--extend-exclude <FILE_PATTERN>
--extend-exclude <FILE_PATTERN>
Like --exclude, but adds additional files and directories on top of
those already excluded
--respect-gitignore
--respect-gitignore
Respect file exclusions via `.gitignore` and other standard ignore
files. Use `--no-respect-gitignore` to disable
--force-exclude
--force-exclude
Enforce exclusions, even for paths passed to Ruff directly on the
command-line. Use `--no-force-exclude` to disable

Expand All @@ -684,15 +685,16 @@ Log levels:
detecting diagnostics)

Global options:
--config <CONFIG_OPTION>
Either a path to a TOML configuration file (`pyproject.toml` or
`ruff.toml`), or a TOML `<KEY> = <VALUE>` pair (such as you might
find in a `ruff.toml` configuration file) overriding a specific
configuration option. Overrides of individual settings using this
option always take precedence over all configuration files, including
configuration files that were also specified using `--config`
--isolated
Ignore all configuration files
--config <CONFIG_OPTION> Either a path to a TOML configuration file
(`pyproject.toml` or `ruff.toml`), or a TOML `<KEY>
= <VALUE>` pair (such as you might find in a
`ruff.toml` configuration file) overriding a
specific configuration option. Overrides of
individual settings using this option always take
precedence over all configuration files, including
configuration files that were also specified using
`--config`
--isolated Ignore all configuration files
```

<!-- End auto-generated check help. -->
Expand Down Expand Up @@ -742,25 +744,25 @@ Miscellaneous:
format, even if all files were formatted successfully

File selection:
--respect-gitignore
Respect file exclusions via `.gitignore` and other standard ignore
files. Use `--no-respect-gitignore` to disable
--exclude <FILE_PATTERN>
List of paths, used to omit files and/or directories from analysis
--force-exclude
Enforce exclusions, even for paths passed to Ruff directly on the
command-line. Use `--no-force-exclude` to disable
--respect-gitignore Respect file exclusions via `.gitignore` and other
standard ignore files. Use `--no-respect-gitignore`
to disable
--exclude <FILE_PATTERN> List of paths, used to omit files and/or
directories from analysis
--force-exclude Enforce exclusions, even for paths passed to Ruff
directly on the command-line. Use
`--no-force-exclude` to disable

Format configuration:
--line-length <LINE_LENGTH> Set the line-length
--line-length <LINE_LENGTH> Set the line-length

Editor options:
--range <RANGE> When specified, Ruff will try to only format the code in
the given range.
It might be necessary to extend the start backwards or
the end forwards, to fully enclose a logical line.
The `<RANGE>` uses the format
`<start_line>:<start_column>-<end_line>:<end_column>`.
--range <RANGE> When specified, Ruff will try to only format the code in the
given range.
It might be necessary to extend the start backwards or the
end forwards, to fully enclose a logical line.
The `<RANGE>` uses the format
`<start_line>:<start_column>-<end_line>:<end_column>`.

Log levels:
-v, --verbose Enable verbose logging
Expand All @@ -769,15 +771,16 @@ Log levels:
detecting diagnostics)

Global options:
--config <CONFIG_OPTION>
Either a path to a TOML configuration file (`pyproject.toml` or
`ruff.toml`), or a TOML `<KEY> = <VALUE>` pair (such as you might
find in a `ruff.toml` configuration file) overriding a specific
configuration option. Overrides of individual settings using this
option always take precedence over all configuration files, including
configuration files that were also specified using `--config`
--isolated
Ignore all configuration files
--config <CONFIG_OPTION> Either a path to a TOML configuration file
(`pyproject.toml` or `ruff.toml`), or a TOML `<KEY>
= <VALUE>` pair (such as you might find in a
`ruff.toml` configuration file) overriding a
specific configuration option. Overrides of
individual settings using this option always take
precedence over all configuration files, including
configuration files that were also specified using
`--config`
--isolated Ignore all configuration files
```

<!-- End auto-generated format help. -->
Expand Down
Loading