Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow parentheses around str concatenation in lists/tuples #34

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

robsdedude
Copy link
Owner

Add a new exception

[
    "a",
    (
        "b"
        "c"
    ),
    "d",
]

[
    "a",
    "b"
    "c"
    "d",
]

[
    (
        "a" "b"
    ),
]

This aligns the plugin with what black --preview does.

Closes #32

Add a new exception

```python
[
    "a",
    (
        "b"
        "c"
    ),
    "d",
]

[
    "a",
    "b"
    "c"
    "d",
]

[
    (
        "a" "b"
    ),
]
```

This aligns the plugin with what `black --preview` does.
@robsdedude robsdedude merged commit 393f93e into main Sep 18, 2023
@robsdedude robsdedude deleted the allow-parens-string-concatenation-list-tuple branch September 18, 2023 15:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exempt concatenated string literals for black --preview compatibility
1 participant