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

Formatter: allow_form_feeds preview style #8895

Closed
Tracked by #8678
MichaReiser opened this issue Nov 29, 2023 · 1 comment
Closed
Tracked by #8678

Formatter: allow_form_feeds preview style #8895

MichaReiser opened this issue Nov 29, 2023 · 1 comment
Labels
formatter Related to the formatter needs-decision Awaiting a decision from a maintainer preview Related to preview mode features

Comments

@MichaReiser
Copy link
Member

MichaReiser commented Nov 29, 2023

Implement Black's allow_form_feeds style as a preview style in Ruff.

Black now retains form feed characters on module level on otherwise empty lines. Supporting this would be nice but adds some complexity because we need to check the source text to identify from feed characters.

I consider this a nice to have but not a must for the stable release of the formatter.

@MichaReiser MichaReiser changed the title allow_form_feeds Formatter: allow_form_feeds preview style Nov 29, 2023
@MichaReiser MichaReiser added formatter Related to the formatter needs-decision Awaiting a decision from a maintainer preview Related to preview mode features labels Nov 29, 2023
@MichaReiser
Copy link
Member Author

This is a neat feature but rather nish. I'm happy to provide help if someone's interested in implementing this. I'll close this in the meantime to clarify that it is unplanned.

@MichaReiser MichaReiser closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Related to the formatter needs-decision Awaiting a decision from a maintainer preview Related to preview mode features
Projects
None yet
Development

No branches or pull requests

1 participant