ruff/docs
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="https://github.com/astral-sh/ruff/assets/1309177/028b18d2-8c92-49c1-b781-f24c9ae310f7">

<img width="1792" alt="Screen Shot 2023-09-13 at 9 13 40 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/fd598da5-78fb-412d-a69e-2a0963d479cd">

<img width="1792" alt="Screen Shot 2023-09-13 at 9 13 58 PM"
src="https://github.com/astral-sh/ruff/assets/1309177/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="https://github.com/astral-sh/ruff/assets/1309177/db370a0e-2a9f-4acd-b1e3-224a1f8e9ce5">
2023-09-14 18:37:23 +00:00
..
.overrides/partials/integrations/analytics Move some MkDocs responsibilities around (#5542) 2023-07-05 22:06:01 +00:00
assets Update docs to match updated logo and color palette (#5283) 2023-06-22 11:19:34 -04:00
stylesheets Render full-width tables in rules reference (#5636) 2023-07-10 02:39:07 +00:00
.gitignore Add a preliminary tutorial (#3281) 2023-02-28 20:31:27 +00:00
configuration.md Show rule codes in shell tab completion (#7375) 2023-09-14 18:37:23 +00:00
editor-integrations.md markdownlint: enforce 100 char max length (#4698) 2023-05-28 22:45:56 -04:00
faq.md Add preview documentation section (#7281) 2023-09-12 15:43:31 +00:00
installation.md markdownlint: enforce 100 char max length (#4698) 2023-05-28 22:45:56 -04:00
preview.md Add preview documentation section (#7281) 2023-09-12 15:43:31 +00:00
requirements-insiders.txt Use Insiders version of `mkdocs-material` (#5540) 2023-07-05 20:36:26 +00:00
requirements.txt Use Insiders version of `mkdocs-material` (#5540) 2023-07-05 20:36:26 +00:00
tutorial.md Docs linking error tutorial with error suppression (#7014) 2023-09-13 20:22:18 -04:00
usage.md Bump version to v0.0.289 (#7308) 2023-09-12 12:00:11 -04:00