mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Remove deprecated pcre language
This commit is contained in:
parent
3fadbefab9
commit
97e3371046
9 changed files with 18 additions and 139 deletions
|
|
@ -82,14 +82,6 @@ def _subtle_line(s, use_color):
|
|||
def _run_single_hook(classifier, hook, skips, cols, verbose, use_color):
|
||||
filenames = classifier.filenames_for_hook(hook)
|
||||
|
||||
if hook.language == 'pcre':
|
||||
logger.warning(
|
||||
'`{}` (from {}) uses the deprecated pcre language.\n'
|
||||
'The pcre language is scheduled for removal in pre-commit 2.x.\n'
|
||||
'The pygrep language is a more portable (and usually drop-in) '
|
||||
'replacement.'.format(hook.id, hook.src),
|
||||
)
|
||||
|
||||
if hook.id in skips or hook.alias in skips:
|
||||
output.write(
|
||||
get_hook_message(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue