Skip to content

[pep8-naming] Fix formatting of __all__ (N816)#20301

Merged
ntBre merged 2 commits intoastral-sh:mainfrom
onerandomusername:patch-1
Sep 8, 2025
Merged

[pep8-naming] Fix formatting of __all__ (N816)#20301
ntBre merged 2 commits intoastral-sh:mainfrom
onerandomusername:patch-1

Conversation

@onerandomusername
Copy link
Contributor

Summary

Noticed this was not escaped when writing a project that parses the result of ruff rule --outputformat json. This is visible here: https://docs.astral.sh/ruff/rules/mixed-case-variable-in-global-scope/#why-is-this-bad

Test Plan

documentation only

@ntBre ntBre added the documentation Improvements or additions to documentation label Sep 8, 2025
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Thank you!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre changed the title Fix formatting of __all__ in N816 [pep8-naming] Fix formatting of __all__ (N816) Sep 8, 2025
@ntBre ntBre enabled auto-merge (squash) September 8, 2025 14:37
@ntBre ntBre merged commit ab86ae1 into astral-sh:main Sep 8, 2025
34 checks passed
@onerandomusername onerandomusername deleted the patch-1 branch September 9, 2025 14:43
second-ed pushed a commit to second-ed/ruff that referenced this pull request Sep 9, 2025
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary

Noticed this was not escaped when writing a project that parses the
result of `ruff rule --outputformat json`. This is visible here:
<https://docs.astral.sh/ruff/rules/mixed-case-variable-in-global-scope/#why-is-this-bad>

## Test Plan

documentation only

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
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

Comments