ruff/crates/ruff_cli/tests
Alan Du 359a68d18f
Factor out a builder to handle common integration test arguments (#8733)
## Summary

This refactors the `ruff_cli` integration tests to create a new
`RuffCheck` struct -- this holds options to configure the "common case"
flags that we want to pass to Ruff (e.g. `--no-cache`, `--isolated`,
etc). This helps reduce the boilerplate and (IMO) makes it more obvious
what the core logic of each test is by keeping only the "interesting"
parameters.

## Test Plan

`cargo test`
2023-11-22 00:32:01 +00:00
..
snapshots Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
format.rs Factor out a builder to handle common integration test arguments (#8733) 2023-11-22 00:32:01 +00:00
integration_test.rs Factor out a builder to handle common integration test arguments (#8733) 2023-11-22 00:32:01 +00:00
lint.rs Respect --force-exclude for lint.exclude and format.exclude (#8393) 2023-10-31 17:45:48 -04:00
resolve_files.rs Update ruff check and ruff format to default to the current directory (#8791) 2023-11-21 11:34:21 -06:00