Skip to content

Report the offending aligned-indent option value - #933

Open
muneikh wants to merge 1 commit into
andialbrecht:masterfrom
muneikh:report-invalid-aligned-indent-value
Open

muneikh wants to merge 1 commit into
andialbrecht:masterfrom
muneikh:report-invalid-aligned-indent-value

Conversation

@muneikh

@muneikh muneikh commented Oct 11, 2026 •

Copy link
Copy Markdown

Invalid reindent_aligned values raise an error containing the unrelated reindent flag. For example, reindent_aligned='invalid' reports False. Use the actual aligned-indent value in the diagnostic.

Add API regression coverage for invalid strings, None and integers with reindent enabled and disabled.

Validation: 512 tests passed, 2 expected failures and 1 existing unexpected pass on Python 3.11. The full source Ruff check and git diff --check pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant