ruff/crates/ruff_cli/src
Charlie Marsh a1c559eaa4
Only run pyproject.toml lint rules when enabled (#5578)
## Summary

I was testing some changes on Airflow, and I realized that we _always_
run the `pyproject.toml` validation rules, even if they're not enabled.
This PR gates them behind the appropriate enablement flags.

## Test Plan

- Ran: `cargo run -p ruff_cli -- check ../airflow -n`. Verified that no
RUF200 violations were raised.
- Run: `cargo run -p ruff_cli -- check ../airflow -n --select RUF200`.
Verified that two RUF200 violations were raised.
2023-07-08 11:05:05 -04:00
..
bin Add support for providing command-line arguments via argfile (#4087) 2023-04-25 17:58:21 -06:00
commands Add ruff rule --all subcommand (with JSON output) (#5059) 2023-07-04 19:45:38 +00:00
args.rs Extend ruff_dev formatter script to compute statistics and format a project (#5492) 2023-07-07 11:30:12 +00:00
cache.rs Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
diagnostics.rs Only run pyproject.toml lint rules when enabled (#5578) 2023-07-08 11:05:05 -04:00
lib.rs Add ruff rule --all subcommand (with JSON output) (#5059) 2023-07-04 19:45:38 +00:00
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Add option (-o/--output-file) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
resolve.rs Add a script that tests formatter stability on repositories (#5055) 2023-06-19 14:13:38 +00:00