Skip to content

Add a migration guide for categories - #28087

Merged
ntBre merged 7 commits into
mainfrom
brent/category-migration
Sep 30, 2026
Merged

ntBre merged 7 commits into
mainfrom
brent/category-migration

Conversation

@ntBre

@ntBre ntBre commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

As the title says, this PR extends our category docs to include a migration guide explaining how to approach a migration to the new categories. Initially I included a migration script and a description of how it works, but if we're unlikely to remove linter groups, it seems less helpful. Our recommendation is basically to extend-select the new categories to round out your existing configuration, and no dramatic migration is necessary.

I guess this is not really a "migration guide" anymore, as reflected in the updated section title.

@ntBre ntBre added the documentation Improvements or additions to public-facing documentation label Aug 26, 2026
@ntBre
ntBre force-pushed the brent/category-migration branch from b53791e to 00a4b47 Compare August 26, 2026 22:56
@ntBre ntBre added the preview Related to preview-mode features label Aug 26, 2026
@astral-sh-bot

astral-sh-bot Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@ntBre
ntBre force-pushed the brent/category-migration branch from 00a4b47 to 814d90b Compare August 26, 2026 23:10
@ntBre
ntBre marked this pull request as ready for review August 26, 2026 23:20
@ntBre
ntBre requested a review from MichaReiser August 26, 2026 23:20
@MichaReiser

This comment was marked as resolved.

Comment thread docs/migrating-to-categories.md Resolved
@ntBre

This comment was marked as resolved.

Comment thread docs/migrating-to-categories.md Resolved
@MichaReiser

This comment was marked as resolved.

@ntBre

This comment was marked as resolved.

@MichaReiser

This comment was marked as resolved.

@chirizxc

This comment was marked as resolved.

@ntBre

This comment was marked as resolved.

@ntBre ntBre changed the title Add a rule page organized by categories and a migration guide Add a migration guide for categories Aug 27, 2026
Comment thread docs/linter.md Resolved
@ntBre
ntBre force-pushed the brent/codeless-rules branch from 9c5afd2 to d8e40ef Compare August 27, 2026 13:07
@ntBre
ntBre force-pushed the brent/category-migration branch from 24b9253 to 13d667c Compare August 27, 2026 13:07
@ntBre
ntBre force-pushed the brent/codeless-rules branch from d8e40ef to 1596c5a Compare August 27, 2026 13:20
@ntBre
ntBre force-pushed the brent/category-migration branch 2 times, most recently from 128832f to 590e5f0 Compare August 27, 2026 14:07
Base automatically changed from brent/codeless-rules to main August 27, 2026 15:26
@ntBre
ntBre force-pushed the brent/category-migration branch from 590e5f0 to f7521e2 Compare August 27, 2026 15:26

@MichaReiser MichaReiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few initial comments, haven't done a full review yet

Comment thread docs/migrating-to-categories.md Resolved
Comment thread docs/migrating-to-categories.md Resolved
Comment thread docs/migrating-to-categories.md Resolved
Comment thread docs/migrating-to-categories.md Resolved
Comment thread docs/migrating-to-categories.md Resolved
Comment thread docs/migrating-to-categories.md Resolved
Comment thread docs/migrating-to-categories.md Resolved
@ntBre
ntBre marked this pull request as draft August 28, 2026 16:33
@ntBre ntBre mentioned this pull request Aug 31, 2026
@ntBre
ntBre removed this pull request from stack #27911 September 17, 2026 17:03
ntBre and others added 3 commits September 17, 2026 16:37
Summary
--

As the title says, this PR adds two new pages to our documentation: a variant of our Rules page
organized by the new categories and a migration guide explaining how to approach a migration to the
new categories. I initially planned to avoid including any kind of automated migration tool, but I
ended up writing a relatively simple Python script for automating a 1:1 migration. It actually seems
pretty helpful because it:
- selects categories to cover your existing rules fully
- adds ignores to eliminate extra rules from the full categories
- includes `# category` headings to help identify rules you might want to add

Some example output from the Ruff repo:

```toml
select = [
    "correctness",
    "suspicious",
    "complexity",
    "performance",
    "style",
    "security",
    "formatting",
    "pedantic",
    "restriction",
]
ignore = [
    # correctness
    "airflow3-dag-dynamic-value",
    "assert-on-string-literal",
    "await-outside-async",
    "bad-open-mode",
    "bad-str-strip-call",
    "bad-string-format-character",
    "bad-string-format-type",
    "continue-in-finally",
    "debugger",
    "direct-logger-instantiation",
    "duplicate-bases",
    "future-required-type-annotation",
    "global-at-module-level",
    "incorrect-decorator-order",
    "indented-form-feed",
    "invalid-all-format",
    # ...
]
```

Test Plan
--

Future readers :D
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
@ntBre
ntBre force-pushed the brent/category-migration branch from 85fba7a to 72cb40f Compare September 17, 2026 20:46
Comment thread docs/linter.md Resolved
@ntBre
ntBre force-pushed the brent/category-migration branch from 72cb40f to 083a241 Compare September 17, 2026 21:01
@ntBre
ntBre marked this pull request as ready for review September 17, 2026 21:02
@ntBre
ntBre requested a review from MichaReiser September 17, 2026 21:02

@MichaReiser MichaReiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more comments. I think we mainly need to align on how seriously we're considering deprecating linter groups.

Comment thread docs/linter.md Resolved
Comment thread docs/linter.md Resolved
Comment thread docs/linter.md Resolved
Comment thread docs/linter.md Resolved
@ntBre
ntBre requested a review from MichaReiser September 29, 2026 16:38

@MichaReiser MichaReiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is great. You're a strong writer

Comment thread docs/linter.md Resolved
Co-authored-by: Micha Reiser <micha@reiser.io>
@ntBre
ntBre merged commit c97af1e into main Sep 30, 2026
49 checks passed
@ntBre
ntBre deleted the brent/category-migration branch September 30, 2026 14:11
@ntBre ntBre mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to public-facing documentation preview Related to preview-mode features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants