mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Add top-level files key for inclusion
This commit is contained in:
parent
0ecd50b80d
commit
6af0e33eed
3 changed files with 26 additions and 8 deletions
|
|
@ -206,7 +206,9 @@ def _run_hooks(config, hooks, args, environ):
|
|||
skips = _get_skips(environ)
|
||||
cols = _compute_cols(hooks, args.verbose)
|
||||
filenames = _all_filenames(args)
|
||||
filenames = filter_by_include_exclude(filenames, '', config['exclude'])
|
||||
filenames = filter_by_include_exclude(
|
||||
filenames, config['files'], config['exclude'],
|
||||
)
|
||||
classifier = Classifier(filenames)
|
||||
retval = 0
|
||||
for hook in hooks:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue