mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 09:27:21 +08:00
let pre-commit fix some stuff
This commit is contained in:
@ -7,7 +7,6 @@ from collections import OrderedDict
|
||||
import simplejson
|
||||
|
||||
|
||||
|
||||
def _get_pretty_format(contents, indent, sort_keys=True, top_keys=[]):
|
||||
def pairs_first(pairs):
|
||||
before = [pair for pair in pairs if pair[0] in top_keys]
|
||||
@ -50,10 +49,12 @@ def parse_indent(s):
|
||||
'Negative integer supplied to construct JSON indentation delimiter. ',
|
||||
)
|
||||
|
||||
|
||||
def parse_topkeys(s):
|
||||
# type: (str) -> array
|
||||
return s.split(',')
|
||||
|
||||
|
||||
def pretty_format_json(argv=None):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
|
Reference in New Issue
Block a user