tools: Added pydocstyle for python files.
This commit is contained in:
parent
bff38fc697
commit
402cdf3994
3 changed files with 10 additions and 4 deletions
|
|
@ -383,6 +383,12 @@ def pycodestyle(path):
|
|||
return _run_command([_python_version(path), "-m", "pycodestyle", path])
|
||||
|
||||
|
||||
@deps(deps={"python-pydocstyle", "python3-pydocstyle"},
|
||||
url="python-pydocstyle")
|
||||
def pydocstyle(path):
|
||||
return _run_command([_python_version(path), "-m", "pydocstyle", path])
|
||||
|
||||
|
||||
@deps(deps={"python-pyflakes", "python3-pyflakes"}, url="pyflakes")
|
||||
def pyflakes(path):
|
||||
return _run_command([_python_version(path), "-m", "pyflakes", path])
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
tools_for_extensions = [
|
||||
[["py"], ["python_syntax", "python_unittests", "pydoc", "mypy",
|
||||
"python_coverage", "pycodestyle", "pyflakes", "pylint",
|
||||
"python_gut", "python_modulefinder", "dis", "python_mccabe",
|
||||
"bandit"]],
|
||||
"python_coverage", "pycodestyle", "pydocstyle", "pyflakes",
|
||||
"pylint", "python_gut", "python_modulefinder", "dis",
|
||||
"python_mccabe", "bandit"]],
|
||||
# [["pyc"], ["pydisasm"]],
|
||||
[["pl", "pm", "t"], ["perl_syntax", "perldoc", "perltidy"]],
|
||||
# [["p6", "pm6"], ["perl6_syntax", "perldoc"]],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue