diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b7eb48b51..bf2ac7a196 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -149,7 +149,7 @@ repos: - flake8-2020 >= 1.6.0 - flake8-docstrings >= 1.5.0 - flake8-pytest-style >= 1.2.2 - - wemake-python-styleguide ~= 0.15.0 + - wemake-python-styleguide >= 0.16.1 - repo: https://github.com/pre-commit/mirrors-mypy.git rev: v0.910 diff --git a/proxy/http/websocket/frame.py b/proxy/http/websocket/frame.py index 7cccbcb067..af6e0c7e9e 100644 --- a/proxy/http/websocket/frame.py +++ b/proxy/http/websocket/frame.py @@ -178,6 +178,6 @@ def apply_mask(data: bytes, mask: bytes) -> bytes: @staticmethod def key_to_accept(key: bytes) -> bytes: - sha1 = hashlib.sha1() + sha1 = hashlib.sha1() # noqa: S324 sha1.update(key + WebsocketFrame.GUID) return base64.b64encode(sha1.digest())