mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
new_line on _get_pretty_format is now True by default.
This commit is contained in:
parent
0d1f9e9fee
commit
545c711244
2 changed files with 1 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ def _get_pretty_format(
|
|||
ensure_ascii: bool = True,
|
||||
sort_keys: bool = True,
|
||||
top_keys: Sequence[str] = (),
|
||||
new_line: bool = False,
|
||||
new_line: bool = True,
|
||||
) -> str:
|
||||
def pairs_first(pairs: Sequence[tuple[str, str]]) -> Mapping[str, str]:
|
||||
before = [pair for pair in pairs if pair[0] in top_keys]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue