ruff/crates/ruff_formatter/src
Micha Reiser f18a1f70de
Add tests for skip magic trailing comma
<!--
Thank you for contributing to Ruff! To help us out with reviewing, please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

This PR adds tests that verify that the magic trailing comma is not respected if disabled in the formatter options. 

Our test setup now allows to create a `<fixture-name>.options.json` file that contains an array of configurations that should be tested. 

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

It's all about tests :) 

<!-- How was it tested? -->
2023-06-26 14:15:55 +02:00
..
format_element Use trait for labels instead of `TypeId` (#5270) 2023-06-21 22:26:09 +01:00
printer Add BestFittingMode (#5184) 2023-06-20 18:16:01 +02:00
arguments.rs Add `rome_formatter` fork as `ruff_formatter` (#2872) 2023-02-14 19:22:55 -05:00
buffer.rs Run `rustfmt` on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
builders.rs Use trait for labels instead of `TypeId` (#5270) 2023-06-21 22:26:09 +01:00
diagnostics.rs Run automatically format code blocks with Black (#3191) 2023-02-27 10:14:05 -05:00
format_element.rs Add BestFittingMode (#5184) 2023-06-20 18:16:01 +02:00
format_extensions.rs Run `rustfmt` on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
formatter.rs Remove dependency on `ruff_rowan` (#2875) 2023-02-15 03:54:08 +00:00
group_id.rs Disallow `unreachable_pub` (#4314) 2023-05-11 18:00:00 -04:00
lib.rs Add tests for skip magic trailing comma 2023-06-26 14:15:55 +02:00
macros.rs Add BestFittingMode (#5184) 2023-06-20 18:16:01 +02:00
prelude.rs Remove dependency on `ruff_rowan` (#2875) 2023-02-15 03:54:08 +00:00
source_code.rs Leading, Dangling, and Trailing comments formatting (#4785) 2023-06-02 09:26:36 +02:00