mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 14:24:17 +00:00
Merge branch 'deprecate_setuptools_command' into 'master'
Deprecate the flake8 setuptools integration Closes #544 See merge request pycqa/flake8!330
This commit is contained in:
commit
4b7208936a
1 changed files with 8 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
"""The logic for Flake8's integration with setuptools."""
|
"""The logic for Flake8's integration with setuptools."""
|
||||||
|
from distutils import log
|
||||||
import os
|
import os
|
||||||
from typing import List, Tuple
|
from typing import List, Tuple
|
||||||
|
|
||||||
|
|
@ -105,3 +106,10 @@ class Flake8(setuptools.Command):
|
||||||
# other possibly remaining/pending setuptools commands).
|
# other possibly remaining/pending setuptools commands).
|
||||||
if e.code:
|
if e.code:
|
||||||
raise
|
raise
|
||||||
|
finally:
|
||||||
|
self.announce(
|
||||||
|
"WARNING: flake8 setuptools integration is deprecated and "
|
||||||
|
"scheduled for removal in 4.x. For more information, see "
|
||||||
|
"https://gitlab.com/pycqa/flake8/issues/544",
|
||||||
|
log.WARN,
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue