ruff/crates
Micha Reiser ed33b75bad
test(ruff_python_formatter): Run all Black tests (#2993)
This PR changes the testing infrastructure to run all black tests and:

* Pass if Ruff and Black generate the same formatting
* Fail and write a markdown snapshot that shows the input code, the differences between Black and Ruff, Ruffs output, and Blacks output

This is achieved by introducing a new `fixture` macro (open to better name suggestions) that "duplicates" the attributed test for every file that matches the specified glob pattern. Creating a new test for each file over having a test that iterates over all files has the advantage that you can run a single test, and that test failures indicate which case is failing. 

The `fixture` macro also makes it straightforward to e.g. setup our own spec tests that test very specific formatting by creating a new folder and use insta to assert the formatted output.
2023-02-22 09:25:06 -05:00
..
flake8_to_ruff Bump version to 0.0.251 (#3105) 2023-02-21 18:13:59 -05:00
ruff refactor(ruff): Implement doc_lines_from_tokens as iterator (#3124) 2023-02-22 09:22:06 -05:00
ruff_cli refactor(ruff): Implement doc_lines_from_tokens as iterator (#3124) 2023-02-22 09:22:06 -05:00
ruff_dev clean up to fix nightly clippy warnings and dedents (#3057) 2023-02-20 09:33:47 -05:00
ruff_formatter Increase expected size of FormatElement (#3049) 2023-02-20 12:47:35 -05:00
ruff_macros Add missing rust-version in crates (#3009) 2023-02-19 15:07:17 +00:00
ruff_python Relax constraints on pep8-naming module validation (#3043) 2023-02-19 17:34:23 -05:00
ruff_python_formatter test(ruff_python_formatter): Run all Black tests (#2993) 2023-02-22 09:25:06 -05:00
ruff_testing_macros test(ruff_python_formatter): Run all Black tests (#2993) 2023-02-22 09:25:06 -05:00
ruff_text_size Add missing rust-version in crates (#3009) 2023-02-19 15:07:17 +00:00