mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 02:46:52 +00:00
Add deprecation message for git hook
This commit is contained in:
parent
0cdc1b9efe
commit
43b14ff2d7
1 changed files with 11 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
"""Module containing some of the logic for our VCS installation logic."""
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
from flake8 import exceptions as exc
|
||||
from flake8.main import git
|
||||
|
|
@ -29,6 +32,14 @@ class InstallAction(argparse.Action):
|
|||
|
||||
if not successful:
|
||||
print("Could not find the {0} directory".format(value))
|
||||
|
||||
print(
|
||||
"\nWARNING: flake8 vcs hooks integration is deprecated and "
|
||||
"scheduled for removal in 4.x. For more information, see "
|
||||
"https://gitlab.com/pycqa/flake8/issues/568",
|
||||
file=sys.stderr,
|
||||
)
|
||||
|
||||
raise SystemExit(not successful and errored)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue