Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example demonstrating that fmt: skip on expression level is not supported #9973

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented Feb 13, 2024

Summary

The fact that ruff doesn't support expression level suppression comments while black does has caused some confusion.
We plan to add a lint rule warning against said suppression comments in #9899 but we should also improve our documentation to mention the limitation explicilty.

This PR adds such documentation to the suppression comments section.

Closes #8319

Test Plan

image

@MichaReiser MichaReiser added the documentation Improvements or additions to documentation label Feb 13, 2024
docs/formatter.md Outdated Show resolved Hide resolved
@MichaReiser MichaReiser force-pushed the document-fmt-skip-expression-level branch 2 times, most recently from 73894e0 to 8848517 Compare February 13, 2024 15:27
@MichaReiser MichaReiser force-pushed the document-fmt-skip-expression-level branch from 8848517 to 7103b99 Compare February 13, 2024 15:33
@MichaReiser MichaReiser enabled auto-merge (squash) February 13, 2024 15:33
@MichaReiser MichaReiser merged commit 46db3f9 into main Feb 13, 2024
16 checks passed
@MichaReiser MichaReiser deleted the document-fmt-skip-expression-level branch February 13, 2024 15:35
nkxxll pushed a commit to nkxxll/ruff that referenced this pull request Mar 10, 2024
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.

fmt: skip does not work on internal structures
2 participants