question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preserve arguments list aligned to an opening bracket

See original GitHub issue

I have the following complain. This

redis = await create_subprocess_exec("Redis", "/usr/local/bin/redis-server",
                                     "--bind", str(host), "--port", str(redis_port))

becomes this:

  redis = await create_subprocess_exec(
    "Redis", "/usr/local/bin/redis-server", "--bind", str(host), "--port", str(redis_port)
  )

I would like to keep the first variant (where I align code to opening bracket and line brakes are set by some logic), but cannot find proper setting, is that possible?

I have tried to modify split_before_named_assigns, but this did not help…

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:12
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
spottcommented, Feb 24, 2017

I’m interested in this as well.

It looks like CONTINUATION_INDENT_WIDTH should have some sort of alignment option, rather than just a value.

2reactions
rdburnscommented, Mar 13, 2018

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ Align arguments to opening parenthesis?
Save this question. Show activity on this post. When I split arguments onto multiple lines in IntelliJ, it puts the argument at a...
Read more >
In emacs, how do I align closing parentheses with the start of ...
I would prefer it if the closing bracket aligned with the start of the line that contains the opening bracket. For example: function_one( ......
Read more >
Environment aligned doesn't output first part in bracket - TeX
I can think of two solutions: Insert \relax before the left square bracket (it will stop the bracket from being interpreted as an...
Read more >
PEP 8: Hanging Indentation and Closing Brackets in Python
However, the PEP 8 standard allows NOT to place both opening and closing braces (brackets, parentheses) into their own line—IF the arguments or...
Read more >
Clang-Format Style Options — Clang 16.0.0git documentation
This section lists the supported style options. Value type is specified ... BAS_Align (in configuration: Align ) Align parameters on the open bracket,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found