mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 12:26:52 +00:00
Resolve conflict.
This commit is contained in:
commit
eeb25c5e1e
2 changed files with 8 additions and 5 deletions
3
pre_commit_hooks/.json
Normal file
3
pre_commit_hooks/.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"name": "victor"
|
||||||
|
}
|
||||||
|
|
@ -102,7 +102,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||||
action='store_true',
|
action='store_true',
|
||||||
dest='no_new_line',
|
dest='no_new_line',
|
||||||
default=False,
|
default=False,
|
||||||
help="Do NOT add a new line at the end of the files"
|
help='Do NOT add a new line at the end of the files',
|
||||||
)
|
)
|
||||||
parser.add_argument('filenames', nargs='*', help='Filenames to fix')
|
parser.add_argument('filenames', nargs='*', help='Filenames to fix')
|
||||||
args = parser.parse_args(argv)
|
args = parser.parse_args(argv)
|
||||||
|
|
@ -116,7 +116,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||||
try:
|
try:
|
||||||
pretty_contents = _get_pretty_format(
|
pretty_contents = _get_pretty_format(
|
||||||
contents, args.indent, ensure_ascii=not args.no_ensure_ascii,
|
contents, args.indent, ensure_ascii=not args.no_ensure_ascii,
|
||||||
sort_keys=not args.no_sort_keys, top_keys=args.top_keys, new_line=not args.no_new_line
|
sort_keys=not args.no_sort_keys, top_keys=args.top_keys, new_line=not args.no_new_line,
|
||||||
)
|
)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print(
|
print(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue