mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 04:54:16 +00:00
reached 100% testing cover
This commit is contained in:
parent
a9d54a63fc
commit
8e79502b8a
10 changed files with 13 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ class LinesChecker(LinesCheckerTemplateMethod):
|
|||
self.check_arguments_size_match(self.args.line_to_check, self.args.regexp_to_match)
|
||||
|
||||
def _check_line(self):
|
||||
super(LinesChecker, self)._check_line()
|
||||
for line_index, line_to_check in enumerate(self.args.line_to_check):
|
||||
line_to_check_pattern = re.compile(line_to_check)
|
||||
if line_to_check_pattern.match(self._file_line):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue