|
1 | 1 | from __future__ import annotations |
2 | 2 |
|
3 | 3 | import argparse |
4 | | -from fnmatch import fnmatch |
5 | 4 | import math |
6 | 5 | import os |
7 | 6 | import subprocess |
8 | 7 | from collections.abc import Sequence |
| 8 | +from fnmatch import fnmatch |
9 | 9 |
|
10 | 10 | from pre_commit_hooks.util import added_files |
11 | 11 | from pre_commit_hooks.util import zsplit |
@@ -35,7 +35,7 @@ def find_large_added_files( |
35 | 35 | filenames: Sequence[str], |
36 | 36 | maxkb: int, |
37 | 37 | *, |
38 | | - exclude: list[str]|None = None, |
| 38 | + exclude: list[str] | None = None, |
39 | 39 | enforce_all: bool = False, |
40 | 40 | ) -> int: |
41 | 41 | # Find all added files that are also in the list of files pre-commit tells |
@@ -76,15 +76,15 @@ def main(argv: Sequence[str] | None = None) -> int: |
76 | 76 | ) |
77 | 77 | parser.add_argument( |
78 | 78 | '--exclude', type=str, default='', |
79 | | - help="Comma-separated list of glob-style patterns to be excluded", |
| 79 | + help='Comma-separated list of glob-style patterns to be excluded', |
80 | 80 | ) |
81 | 81 | args = parser.parse_args(argv) |
82 | 82 |
|
83 | 83 | return find_large_added_files( |
84 | 84 | args.filenames, |
85 | 85 | args.maxkb, |
86 | 86 | enforce_all=args.enforce_all, |
87 | | - exclude=args.exclude.split(',') |
| 87 | + exclude=args.exclude.split(','), |
88 | 88 | ) |
89 | 89 |
|
90 | 90 |
|
|
0 commit comments