mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 01:45:02 +00:00
Update pylint parameters
This commit is contained in:
parent
6c55e815bb
commit
94603ab536
6
pylintrc
6
pylintrc
@ -283,10 +283,10 @@ max-attributes=7
|
|||||||
max-bool-expr=5
|
max-bool-expr=5
|
||||||
|
|
||||||
# Maximum number of branch for function / method body.
|
# Maximum number of branch for function / method body.
|
||||||
max-branches=16
|
max-branches=20
|
||||||
|
|
||||||
# Maximum number of locals for function / method body.
|
# Maximum number of locals for function / method body.
|
||||||
max-locals=18
|
max-locals=20
|
||||||
|
|
||||||
# Maximum number of parents for a class (see R0901).
|
# Maximum number of parents for a class (see R0901).
|
||||||
max-parents=7
|
max-parents=7
|
||||||
@ -327,7 +327,7 @@ indent-after-paren=4
|
|||||||
indent-string=' '
|
indent-string=' '
|
||||||
|
|
||||||
# Maximum number of characters on a single line.
|
# Maximum number of characters on a single line.
|
||||||
max-line-length=100
|
max-line-length=240
|
||||||
|
|
||||||
# Maximum number of lines in a module.
|
# Maximum number of lines in a module.
|
||||||
max-module-lines=1000
|
max-module-lines=1000
|
||||||
|
@ -419,7 +419,7 @@ class Communicate:
|
|||||||
"We received a binary message, but it is missing the header length."
|
"We received a binary message, but it is missing the header length."
|
||||||
)
|
)
|
||||||
|
|
||||||
# See: https://github.com/microsoft/cognitive-services-speech-sdk-js/blob/d071d11d1e9f34d6f79d0ab6114c90eecb02ba1f/src/common.speech/WebsocketMessageFormatter.ts#L46
|
# See: https://github.com/microsoft/cognitive-services-speech-sdk-js/blob/d071d11/src/common.speech/WebsocketMessageFormatter.ts#L46
|
||||||
header_length = int.from_bytes(received.data[:2], "big")
|
header_length = int.from_bytes(received.data[:2], "big")
|
||||||
if len(received.data) < header_length + 2:
|
if len(received.data) < header_length + 2:
|
||||||
raise UnexpectedResponse(
|
raise UnexpectedResponse(
|
||||||
|
Loading…
Reference in New Issue
Block a user