From 43b14ff2d779eb4f4b3c7b8b9395eeaaee60494c Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 27 Apr 2020 12:55:07 -0700 Subject: [PATCH 1/2] Add deprecation message for git hook --- src/flake8/main/vcs.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) From 16498273967e9acf965b5599f4353d24413c7f91 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 27 Apr 2020 13:00:01 -0700 Subject: [PATCH 2/2] exclude broken pylint version https://github.com/PyCQA/pylint/issues/3524 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 066b77a..7c0e6c6 100644 --- a/tox.ini +++ b/tox.ini @@ -61,7 +61,7 @@ basepython = python3 skip_install = true deps = pyflakes - pylint + pylint!=2.5.0 commands = pylint src/flake8