Bad DEDENT_CLOSING_BRACKETS
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
I have code:
``` python
return Response(
content=json.dumps([contact.to_dict() for contact in contacts],
ensure_ascii=False),
headers={
"Access-Control-Allow-Origin":
"http://localhost:3000",
"Content-Range":
f"{pagination[0]}-{pagination[1]}/{total_contacts_count}"
if pagination else ""
}
)
```
But by idea it should be like this:
``` python
return Response(
content=json.dumps(
[contact.to_dict() for contact in contacts],
ensure_ascii=False
),
headers={
"Access-Control-Allow-Origin":
"http://localhost:3000",
"Content-Range":
f"{pagination[0]}-{pagination[1]}/{total_contacts_count}"
if pagination else ""
}
)
```
my **.style.yapf**:
```
[style]
based_on_style = pep8
spaces_before_comment = 2
indent_width = 4
dedent_closing_brackets = true
coalesce_brackets = true
column_limit = 80
split_complex_comprehension = true
split_penalty_import_names = 0
split_penalty_after_opening_bracket = 4
align_closing_bracket_with_visual_indent = false
blank_line_before_nested_class_or_def = false
indent_dictionary_value = true
```
Contributor guide
Assessment
This issue has not been assessed yet.