diff options
| -rw-r--r-- | src/flake8/main/vcs.py | 11 | ||||
| -rw-r--r-- | tox.ini | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/flake8/main/vcs.py b/src/flake8/main/vcs.py index cbe6972..da2f4ff 100644 --- a/src/flake8/main/vcs.py +++ b/src/flake8/main/vcs.py @@ -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) @@ -61,7 +61,7 @@ basepython = python3 skip_install = true deps = pyflakes - pylint + pylint!=2.5.0 commands = pylint src/flake8 |
