mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
fix migrate-config for purelib yaml
This commit is contained in:
parent
3d5548b487
commit
222c62bc5d
2 changed files with 18 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ def _migrate_map(contents: str) -> str:
|
|||
|
||||
|
||||
def _preserve_style(n: ScalarNode, *, s: str) -> str:
|
||||
return f'{n.style}{s}{n.style}'
|
||||
style = n.style or ''
|
||||
return f'{style}{s}{style}'
|
||||
|
||||
|
||||
def _fix_stage(n: ScalarNode) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue