mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 08:24:46 +00:00
Updated package to use pycodestyle
This change was originally triggered by @gvanrossum requeesting that pep8 (the tool) be renamed to avoid confusion with PEP-8 the document. This request is tracked at: https://github.com/PyCQA/pycodestyle/issues/466
This commit is contained in:
parent
16686132c1
commit
1db863e60a
9 changed files with 10 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
pep8
|
pycodestyle
|
||||||
pyflakes
|
pyflakes
|
||||||
mccabe
|
mccabe
|
||||||
mock
|
mock
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@ man_pages = [
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'flake8', u'flake8 Documentation', u'Tarek Ziade',
|
('index', 'flake8', u'flake8 Documentation', u'Tarek Ziade',
|
||||||
'flake8', 'Code checking using pep8, pyflakes and mccabe',
|
'flake8', 'Code checking using pycodestyle, pyflakes and mccabe',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ else:
|
||||||
demandimport.disable()
|
demandimport.disable()
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import pep8
|
import pycodestyle as pep8
|
||||||
import pyflakes
|
import pyflakes
|
||||||
import pyflakes.checker
|
import pyflakes.checker
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
import pep8
|
import pycodestyle as pep8
|
||||||
|
|
||||||
from flake8 import __version__
|
from flake8 import __version__
|
||||||
from flake8 import callbacks
|
from flake8 import callbacks
|
||||||
|
|
@ -44,7 +44,7 @@ def _load_entry_point(entry_point, verify_requirements):
|
||||||
def _register_extensions():
|
def _register_extensions():
|
||||||
"""Register all the extensions."""
|
"""Register all the extensions."""
|
||||||
extensions = util.OrderedSet()
|
extensions = util.OrderedSet()
|
||||||
extensions.add(('pep8', pep8.__version__))
|
extensions.add(('pycodestyle', pep8.__version__))
|
||||||
parser_hooks = []
|
parser_hooks = []
|
||||||
options_hooks = []
|
options_hooks = []
|
||||||
ignored_hooks = []
|
ignored_hooks = []
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
import os
|
import os
|
||||||
import pep8
|
import pycodestyle as pep8
|
||||||
import sys
|
import sys
|
||||||
import stat
|
import stat
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import pep8
|
import pycodestyle as pep8
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
from flake8.engine import get_parser, get_style_guide
|
from flake8.engine import get_parser, get_style_guide
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ try:
|
||||||
except ImportError: # Python 2.5
|
except ImportError: # Python 2.5
|
||||||
multiprocessing = None
|
multiprocessing = None
|
||||||
|
|
||||||
import pep8
|
import pycodestyle as pep8
|
||||||
|
|
||||||
__all__ = ['multiprocessing', 'BaseQReport', 'QueueReport']
|
__all__ = ['multiprocessing', 'BaseQReport', 'QueueReport']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ except ImportError:
|
||||||
import mock # < PY33
|
import mock # < PY33
|
||||||
|
|
||||||
from flake8 import engine, util, __version__, reporter
|
from flake8 import engine, util, __version__, reporter
|
||||||
import pep8
|
import pycodestyle as pep8
|
||||||
|
|
||||||
|
|
||||||
class TestEngine(unittest.TestCase):
|
class TestEngine(unittest.TestCase):
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -50,7 +50,7 @@ setup(
|
||||||
packages=["flake8", "flake8.tests"],
|
packages=["flake8", "flake8.tests"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"pyflakes >= 0.8.1, < 1.1",
|
"pyflakes >= 0.8.1, < 1.1",
|
||||||
"pep8 >= 1.5.7, != 1.6.0, != 1.6.1, != 1.6.2",
|
"pycodestyle >= 2.0",
|
||||||
"mccabe >= 0.2.1, < 0.5",
|
"mccabe >= 0.2.1, < 0.5",
|
||||||
],
|
],
|
||||||
entry_points={
|
entry_points={
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue