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

Implement the fix_power_op_line_length preview style #8947

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

MichaReiser
Copy link
Member

Summary

Implements the fix_power_op_line_length preview style.

The main change is to add a space around the power operator if the binary expression splits over multiple lines:

x = (
    long 
    ** 3
)

# instead of
x = (
    long
    **3
)

Closes #8938

Test Plan

See deleted snapshot file. The similarity index remains unchanged.

@MichaReiser
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@MichaReiser MichaReiser added formatter Related to the formatter preview Related to preview mode features labels Dec 1, 2023
@MichaReiser MichaReiser marked this pull request as ready for review December 1, 2023 16:26
@MichaReiser MichaReiser force-pushed the fix-power-op-line-length branch from 6e96cb3 to 35520f5 Compare December 1, 2023 16:26
Copy link
Contributor

github-actions bot commented Dec 1, 2023

ruff-ecosystem results

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@MichaReiser MichaReiser merged commit 5aaf99b into main Dec 2, 2023
17 checks passed
@MichaReiser MichaReiser deleted the fix-power-op-line-length branch December 2, 2023 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Related to the formatter preview Related to preview mode features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix_power_op_line_length preview style
2 participants