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

Black configuration in pyproject.toml #825

Closed
szmazurek opened this issue Mar 18, 2024 · 0 comments · Fixed by szmazurek/GaNDLF#35 or #830
Closed

Black configuration in pyproject.toml #825

szmazurek opened this issue Mar 18, 2024 · 0 comments · Fixed by szmazurek/GaNDLF#35 or #830
Labels
enhancement New feature or request

Comments

@szmazurek
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Black formatter will by default use a trailing comma as a newline indicator, even if the line length is still within given range. This often unnecesairly causes line to be fragmented.

Describe the solution you'd like

Add a flag in .toml file to do not split by the trailing comma by default

Describe alternatives you've considered

Setting it manually in the IDE or pssing an extra flag when calling from CMD.

Additional context

In the case of VSCode one proabably will still have to add this option in the extension config, even when the .toml file will contain it during installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant