ruff/crates/ruff_cli/src
Charlie Marsh f9e3ea23ba
Show rule codes in shell tab completion (#7375)
## Summary

I noticed that we have a custom parser for rule selectors, but it wasn't
actually being used? This PR adds it back to our Clap setup and changes
the parser to only show full categories and individual rules when
tab-completing:

<img width="1792" alt="Screen Shot 2023-09-13 at 9 13 38 PM"
src="028b18d2-8c92-49c1-b781-f24c9ae310f7">

<img width="1792" alt="Screen Shot 2023-09-13 at 9 13 40 PM"
src="fd598da5-78fb-412d-a69e-2a0963d479cd">

<img width="1792" alt="Screen Shot 2023-09-13 at 9 13 58 PM"
src="7c482b90-6e54-425c-ae23-fb50496a177a">

The previous implementation showed all codes, which I found too noisy:

<img width="1792" alt="Screen Shot 2023-09-13 at 8 57 09 PM"
src="db370a0e-2a9f-4acd-b1e3-224a1f8e9ce5">
2023-09-14 18:37:23 +00:00
..
bin Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
commands Catch panics in formatter (#7377) 2023-09-14 11:44:16 -04:00
args.rs Show rule codes in shell tab completion (#7375) 2023-09-14 18:37:23 +00:00
cache.rs Add NotebookIndex to the cache (#6863) 2023-09-12 18:29:03 +05:30
diagnostics.rs Add NotebookIndex to the cache (#6863) 2023-09-12 18:29:03 +05:30
lib.rs Catch panics in formatter (#7377) 2023-09-14 11:44:16 -04:00
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Add NotebookIndex to the cache (#6863) 2023-09-12 18:29:03 +05:30
resolve.rs Move Configuration to ruff_workspace crate (#6920) 2023-08-28 06:21:35 +00:00
stdin.rs Move stdin formatting to its own command file (#6981) 2023-08-29 16:06:10 +00:00