summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-04-27 20:03:51 +0000
committerAnthony Sottile <asottile@umich.edu>2020-04-27 20:03:51 +0000
commit0c3b8045a7b51aec7abf19dea94d5292cebeeea0 (patch)
tree4b136bb528a8d5aa7371a8f63e111a527d7f9333 /src
parent0cdc1b9efef12106b4d44a658ad943f24db7b2d2 (diff)
parent16498273967e9acf965b5599f4353d24413c7f91 (diff)
downloadflake8-0c3b8045a7b51aec7abf19dea94d5292cebeeea0.tar.gz
Merge branch 'deprecate_git_hook' into 'master'
Add deprecation message for vcs hooks Closes #568 See merge request pycqa/flake8!420
Diffstat (limited to 'src')
-rw-r--r--src/flake8/main/vcs.py11
1 files changed, 11 insertions, 0 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)