[tools] pep8 was renamed to pycodestyle.

This commit is contained in:
Andrew Hamilton 2016-11-11 13:05:32 +01:00
parent 9ef0c51693
commit 916ca5c092
4 changed files with 7 additions and 7 deletions

View file

@ -375,11 +375,11 @@ def python_profile(path):
python_profile.dependencies = {"python", "python3"}
def pep8(path):
cmd = (["pep8"] if _python_version(path) == "python"
else ["python3", "-m", "pep8"])
def pycodestyle(path):
cmd = (["pycodestyle"] if _python_version(path) == "python"
else ["python3", "-m", "pycodestyle"])
return _run_command(cmd + [path])
pep8.dependencies = {"pep8", "python3-pep8"}
pycodestyle.dependencies = {"pycodestyle", "python3-pycodestyle"}
def pyflakes(path):
@ -706,7 +706,7 @@ def _generic_tools():
def _tools_for_extension():
return {
"py": [python_syntax, python_unittests, pydoc, mypy, python_coverage,
python_profile, pep8, pyflakes, pylint, python_gut,
python_profile, pycodestyle, pyflakes, pylint, python_gut,
python_modulefinder, python_mccabe, bandit],
"pyc": [disassemble_pyc],
"pl": [perl_syntax, perldoc, perltidy],

View file

@ -102,8 +102,8 @@ class ToolsTestCase(unittest.TestCase):
# Not testing python_profile, because it is non-deterministic.
def test_pep8(self):
self._test_tool(tools.pep8, self.HI_OK)
def test_pycodestyle(self):
self._test_tool(tools.pycodestyle, self.HI_OK)
def test_pyflakes(self):
self._test_tool(tools.pyflakes, self.HI_OK)