mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 22:04:17 +00:00
Merge branch 'deprecate_git_hook' into 'master'
Add deprecation message for git hook Closes #568 See merge request pycqa/flake8!420
This commit is contained in:
commit
8dee076536
2 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
"""Module containing some of the logic for our VCS installation logic."""
|
"""Module containing some of the logic for our VCS installation logic."""
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import sys
|
||||||
|
|
||||||
from flake8 import exceptions as exc
|
from flake8 import exceptions as exc
|
||||||
from flake8.main import git
|
from flake8.main import git
|
||||||
|
|
@ -29,6 +32,14 @@ class InstallAction(argparse.Action):
|
||||||
|
|
||||||
if not successful:
|
if not successful:
|
||||||
print("Could not find the {0} directory".format(value))
|
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)
|
raise SystemExit(not successful and errored)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -61,7 +61,7 @@ basepython = python3
|
||||||
skip_install = true
|
skip_install = true
|
||||||
deps =
|
deps =
|
||||||
pyflakes
|
pyflakes
|
||||||
pylint
|
pylint!=2.5.0
|
||||||
commands =
|
commands =
|
||||||
pylint src/flake8
|
pylint src/flake8
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue