diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-05 23:47:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-05 23:47:11 +0100 |
| commit | 5a9c9ef54115a27a3eac4e39feb133e33870b145 (patch) | |
| tree | 5856ef55af3f29e8f02fd6da38f4dadcf7736123 /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | e941e73368866d3ecc98f040d9f1376de7efcdf1 (diff) | |
| parent | 536516f949ff37b0e10eaed835c2d3592d03e576 (diff) | |
| download | rust-5a9c9ef54115a27a3eac4e39feb133e33870b145.tar.gz rust-5a9c9ef54115a27a3eac4e39feb133e33870b145.zip | |
Rollup merge of #133821 - Kobzol:replace-black-with-ruff, r=onur-ozkan
Replace black with ruff in `tidy` `ruff` can both lint and format Python code (in fact, it should be a mostly drop-in replacement for `black` in terms of formatting), so it's not needed to use `black` anymore. This PR removes `black` and replaces it with `ruff`, to get rid of one Python dependency, and also to make Python formatting faster (although that's a small thing). If we decide to merge this, we'll need to "reformat the world" - `ruff` is not perfectly compatible with `black`, and it also looks like `black` was actually ignoring some files before. I tried it locally (`./x test tidy --extra-checks=py:fmt --bless`) and it also reformatted some code in subtrees (e.g. `clippy` or `rustc_codegen_gcc`) - I'm not sure how to handle that.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
