Skip to content

Conversation

MeGaGiGaGon
Copy link
Contributor

Summary

Part of #18972

This PR makes multiple-spaces-before-keyword (E272)'s example error out-of-the-box. Since True is also a keyword, the old example raises E271 instead.

Old example

True  and False

New example

x  and y

The "Use instead" section was also updated similarly.

Test Plan

N/A, no functionality/tests affected

Copy link
Contributor

github-actions bot commented Jul 7, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre self-requested a review July 8, 2025 02:31
@ntBre ntBre added the documentation Improvements or additions to documentation label Jul 8, 2025
@ntBre ntBre merged commit 3627614 into astral-sh:main Jul 8, 2025
36 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the patch-2 branch July 8, 2025 14:34
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.

2 participants