ruff/crates/ruff_dev/src
Alex Waygood 8ec56277e9
Allow arbitrary configuration options to be overridden via the CLI (#9599)
Fixes #8368
Fixes https://github.com/astral-sh/ruff/issues/9186

## Summary

Arbitrary TOML strings can be provided via the command-line to override
configuration options in `pyproject.toml` or `ruff.toml`. As an example:
to run over typeshed and respect typeshed's `pyproject.toml`, but
override a specific isort setting and enable an additional pep8-naming
setting:

```
cargo run -- check ../typeshed --no-cache --config ../typeshed/pyproject.toml --config "lint.isort.combine-as-imports=false" --config "lint.extend-select=['N801']"
```

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
Co-authored-by: Zanie Blue <contact@zanie.dev>
2024-02-09 21:56:37 +00:00
..
format_dev.rs Allow arbitrary configuration options to be overridden via the CLI (#9599) 2024-02-09 21:56:37 +00:00
generate_all.rs Document ruff_dev and format_dev (#5648) 2023-07-12 16:18:22 +02:00
generate_cli_help.rs help: enable auto-wrapping of help output (#9633) 2024-01-24 10:51:07 -05:00
generate_docs.rs Add rule removal infrastructure (#9691) 2024-02-01 13:35:02 -06:00
generate_json_schema.rs Move Configuration to ruff_workspace crate (#6920) 2023-08-28 06:21:35 +00:00
generate_options.rs Promote lint. settings over top-level settings (#9476) 2024-02-01 13:35:02 -06:00
generate_rules_table.rs Add rule removal infrastructure (#9691) 2024-02-01 13:35:02 -06:00
main.rs Rename ruff_cli crate to ruff (#9557) 2024-01-16 17:47:01 -05:00
print_ast.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
print_cst.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
print_tokens.rs Update ruff-dev to use SourceKind (#8878) 2023-11-28 14:27:35 -06:00
round_trip.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00