Upgrade flake8 and dependencies, enable flake8-noqa (#48393)

* Upgrade flake8 to 3.9.0

https://flake8.pycqa.org/en/latest/release-notes/3.9.0.html

* Upgrade pydocstyle to 6.0.0

https://www.pydocstyle.org/en/latest/release_notes.html#september-13th-2020
https://www.pydocstyle.org/en/latest/release_notes.html#march-18th-2021

* Upgrade flake8-docstrings to 1.6.0, enable flake8-noqa

https://gitlab.com/pycqa/flake8-docstrings/-/blob/1.6.0/HISTORY.rst
https://github.com/plinss/flake8-noqa/issues/1

* Upgrade/pin pyflakes to 2.3.1

https://github.com/PyCQA/pyflakes/blob/2.3.1/NEWS.rst

* Pin pycodestyle to 2.7.0
This commit is contained in:
Ville Skyttä 2021-03-27 11:22:11 +02:00 committed by GitHub
parent 86212db71d
commit 3cd52b695d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 12 deletions

View file

@ -23,7 +23,7 @@ class HomeAssistantTCPSite(web.BaseSite):
__slots__ = ("_host", "_port", "_reuse_address", "_reuse_port", "_hosturl")
def __init__(
def __init__( # noqa: D107
self,
runner: web.BaseRunner,
host: None | str | list[str],
@ -34,7 +34,7 @@ class HomeAssistantTCPSite(web.BaseSite):
backlog: int = 128,
reuse_address: bool | None = None,
reuse_port: bool | None = None,
) -> None: # noqa: D107
) -> None:
super().__init__(
runner,
shutdown_timeout=shutdown_timeout,