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

Configuration options for argument splitting into multiple lines #15087

Open
oxysoft opened this issue Dec 20, 2024 · 1 comment
Open

Configuration options for argument splitting into multiple lines #15087

oxysoft opened this issue Dec 20, 2024 · 1 comment
Labels
formatter Related to the formatter question Asking for support or clarification

Comments

@oxysoft
Copy link

oxysoft commented Dec 20, 2024

Hi, I looked around and surprisingly did not find any options for this. I just started using Ruff, and it is splitting all my arguments like crazy. For example this line is being turned into 3 lines!

Before:

    results, time_points = analyzer.analyze_segments(waveform, target_resolution=args.segment_duration,)

After:

results, time_points = analyzer.analyze_segments(
    waveform, target_resolution=args.segment_duration
)

Is this the normal expected behavior? Thank you!

@dylwil3
Copy link
Collaborator

dylwil3 commented Dec 20, 2024

This is expected from the formatter, and agrees with the output from black. Are you maybe used to having a longer line length? You can configure that as described in the docs.

@dylwil3 dylwil3 added question Asking for support or clarification formatter Related to the formatter labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Related to the formatter question Asking for support or clarification
Projects
None yet
Development

No branches or pull requests

2 participants