mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
formatting, pass tests
This commit is contained in:
parent
3a8b270dc0
commit
3ded202c2a
3 changed files with 7 additions and 2 deletions
|
|
@ -126,7 +126,11 @@ class Classifier:
|
|||
return Classifier(filenames)
|
||||
|
||||
|
||||
def _get_skips(environ: MutableMapping[str, str], args: argparse.Namespace, hooks: list[Hook]) -> set[str]:
|
||||
def _get_skips(
|
||||
environ: MutableMapping[str, str],
|
||||
args: argparse.Namespace,
|
||||
hooks: list[Hook],
|
||||
) -> set[str]:
|
||||
skips = environ.get('SKIP', '')
|
||||
environ_skips = {skip.strip() for skip in skips.split(',') if skip.strip()}
|
||||
context_skips = {h.id for h in hooks if args.all_files and not h.run_all}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue