Skip to content

Implement the fix_power_op_line_length preview style#8947

Merged
MichaReiser merged 1 commit intomainfrom
fix-power-op-line-length
Dec 2, 2023
Merged

Implement the fix_power_op_line_length preview style#8947
MichaReiser merged 1 commit intomainfrom
fix-power-op-line-length

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
@github-actions
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
@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