Skip to content

Clarify extend-ignore and extend-select settings documentation#24064

Merged
MichaReiser merged 1 commit intoastral-sh:mainfrom
mvanhorn:docs/clarify-extend-ignore-extend-select
Mar 20, 2026
Merged

Clarify extend-ignore and extend-select settings documentation#24064
MichaReiser merged 1 commit intoastral-sh:mainfrom
mvanhorn:docs/clarify-extend-ignore-extend-select

Conversation

@mvanhorn
Copy link
Contributor

Closes #18884

Summary

Clarifies the documentation for lint.extend-ignore and lint.extend-select to address confusion about when to use each variant:

  • extend-ignore: Explains that the deprecation exists because the option is now interchangeable with ignore - in earlier Ruff versions, ignore would replace the ignored set during config inheritance while extend-ignore would add to it, but this distinction no longer applies.
  • extend-select: Adds a clear explanation of the additive behavior vs select's replacement behavior, with a concrete TOML example showing the difference.

Test Plan

  • cargo dev generate-all regenerates the schema successfully
  • cargo fmt -- --check passes
  • Documentation-only change - no runtime behavior affected

Copy link
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Nice. This is a great improvement. Thank you!

@MichaReiser MichaReiser enabled auto-merge (squash) March 20, 2026 08:51
@MichaReiser MichaReiser merged commit a2472ff into astral-sh:main Mar 20, 2026
41 checks passed
@mvanhorn
Copy link
Contributor Author

Thanks for the merge!

carljm added a commit that referenced this pull request Mar 25, 2026
* main:
  [`flake8-bandit`] Check tuple arguments for partial paths in `S607` (#24080)
  [ty] Update Salsa (#24081)
  Update Rust toolchain to 1.94 and MSRV to 1.92 (#24076)
  [ty] Move ruffen-docs formatting config to a `ruff.toml` config file (#24074)
  [ty] `reveal_type` diagnostics in unreachable code (#24070)
  [ty] Improve keyword argument narrowing for nested dictionaries (#24010)
  [ty] Preserve blank lines between comments and imports in add-import action (#24066)
  [ty] Add diagnostic hint for invalid assignments involving invariant generics (#24032)
  Clarify `extend-ignore` and `extend-select` settings documentation (#24064)
  [ty] Batch changes to watched paths (#24045)
  replace deprecated `std::f64::EPSILON` with `f64::EPSILON` (#24067)
  [ty] Fix untracked reads in Salsa queries that can lead to backdating panics (#24051)
  [ty] Unions/intersections of gradual types should be assignable to `Never` (#24056)
  Fix incorrect path for ty_python_semantic in fuzzer (#24052)
  Bump 0.15.7 (#24049)
  [ty] ecosystem-analyzer: Fail on newly panicking projects (#24043)
  Don't show noqa hover for non-Python documents (#24040)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify documentation for lint.extend-ignore and lint.extend-select settings

2 participants