mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
tests for mismatched args
This commit is contained in:
parent
dbe3cd46d7
commit
238d3da42e
6 changed files with 28 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ class FileCheckerTemplateMethod(CheckerTemplateMethod):
|
|||
self.parser.add_argument('filenames', nargs='*')
|
||||
|
||||
def _perform_checks(self):
|
||||
super(FileCheckerTemplateMethod, self)._perform_checks()
|
||||
"""For each file, check it's location."""
|
||||
for self.filename in self.args.filenames:
|
||||
self._check_file()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue