ruff/docs
Zanie Blue 6566d00295
Update rule selection to respect preview mode (#7195)
## Summary

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

Extends work in #7046 (some relevant discussion there)

Changes:

- All nursery rules are now referred to as preview rules
- Documentation for the nursery is updated to describe preview
- Adds a "PREVIEW" selector for preview rules
- This is primarily to allow `--preview --ignore PREVIEW --extend-select
FOO001,BAR200`
- Using `--preview` enables preview rules that match selectors

Notable decisions:

- Preview rules are not selectable by their rule code without enabling
preview
- Retains the "NURSERY" selector for backwards compatibility
- Nursery rules are selectable by their rule code for backwards
compatiblity

Additional work:

- Selection of preview rules without the "--preview" flag should display
a warning
- Use of deprecated nursery selection behavior should display a warning
- Nursery selection should be removed after some time

## Test Plan

<!-- How was it tested? -->

Manual confirmation (i.e. we don't have an preview rules yet just
nursery rules so I added a preview rule for manual testing)

New unit tests

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-09-11 12:28:39 -05: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 Add alpha instructions to the ruff_python_formatter README (#7064) 2023-09-06 11:55:16 +00:00
editor-integrations.md markdownlint: enforce 100 char max length (#4698) 2023-05-28 22:45:56 -04:00
faq.md Update rule selection to respect preview mode (#7195) 2023-09-11 12:28:39 -05:00
installation.md markdownlint: enforce 100 char max length (#4698) 2023-05-28 22:45:56 -04: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 Bump version to 0.0.288 (#7271) 2023-09-11 18:18:11 +02:00
usage.md Bump version to 0.0.288 (#7271) 2023-09-11 18:18:11 +02:00