1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557)

* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0

* Pydocstyle D401 fixes
This commit is contained in:
Ville Skyttä
2018-08-24 11:28:43 +03:00
committed by Paulus Schoutsen
parent 89d856d147
commit dd9d53c83e
84 changed files with 148 additions and 130 deletions

View File

@@ -156,7 +156,7 @@ def core_requirements():
def comment_requirement(req):
"""Some requirements don't install on all systems."""
"""Comment out requirement. Some don't install on all systems."""
return any(ign in req for ign in COMMENT_REQUIREMENTS)
@@ -295,7 +295,7 @@ def validate_constraints_file(data):
def main(validate):
"""Main section of the script."""
"""Run the script."""
if not os.path.isfile('requirements_all.txt'):
print('Run this from HA root dir')
return 1

View File

@@ -18,7 +18,7 @@ def explore_module(package):
def main():
"""Main section of the script."""
"""Run the script."""
if not os.path.isfile('requirements_all.txt'):
print('Run this from HA root dir')
return

View File

@@ -153,7 +153,7 @@ async def lint(files):
async def main():
"""The main loop."""
"""Run the main loop."""
# Ensure we are in the homeassistant root
os.chdir(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

View File

@@ -88,7 +88,7 @@ def save_language_translations(lang, translations):
def main():
"""Main section of the script."""
"""Run the script."""
if not os.path.isfile("requirements_all.txt"):
print("Run this from HA root dir")
return

View File

@@ -73,7 +73,7 @@ def get_translation_dict(translations, component, platform):
def main():
"""Main section of the script."""
"""Run the script."""
if not os.path.isfile("requirements_all.txt"):
print("Run this from HA root dir")
return