mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
More miscellaneous cleanup
This commit is contained in:
parent
489d9f9926
commit
df40e862f4
33 changed files with 209 additions and 296 deletions
|
|
@ -21,7 +21,7 @@ def try_repo_opts(repo, ref=None, **kwargs):
|
|||
|
||||
def _get_out(cap_out):
|
||||
out = re.sub(r'\[INFO\].+\n', '', cap_out.get())
|
||||
start, using_config, config, rest = out.split('=' * 79 + '\n')
|
||||
start, using_config, config, rest = out.split(f'{"=" * 79}\n')
|
||||
assert using_config == 'Using config:\n'
|
||||
return start, config, rest
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue