File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 55 - id : forbid-crlf
66 - id : remove-crlf
77 - repo : https://github.com/pre-commit/pre-commit-hooks
8- rev : v4.6 .0
8+ rev : v5.0 .0
99 hooks :
1010 - id : trailing-whitespace
1111 - id : end-of-file-fixer
1515 exclude : helm/
1616 args : [ --unsafe ]
1717 - repo : https://github.com/charliermarsh/ruff-pre-commit
18- rev : " v0.4 .4"
18+ rev : " v0.7 .4"
1919 hooks :
2020 - id : ruff
2121 args : [--fix, --exit-non-zero-on-fix]
Original file line number Diff line number Diff line change 77import os
88import select
99import socket
10- import ssl
11- from datetime import datetime , timedelta
1210from json .decoder import JSONDecodeError
1311from types import TracebackType
1412from typing import Any , Type
2523 Address ,
2624 ReadableBuffer ,
2725 WriteableBuffer ,
28- _PeerCertRetDictType ,
2926 _RetAddress ,
3027)
3128from mocket .utils import hexdump , hexload
Original file line number Diff line number Diff line change 1010from mocket .io import MocketSocketIO as MocketSocketCore
1111
1212# NOTE this is here for backwards-compat to keep old import-paths working
13- from mocket .mode import MocketMode as MocketMode
13+ from mocket .mode import MocketMode
1414
1515SSL_PROTOCOL = ssl .PROTOCOL_TLSv1_2
1616
@@ -42,3 +42,13 @@ def get_mocketize(wrapper_: Callable) -> Callable:
4242 wrapper_ ,
4343 kwsyntax = True ,
4444 )
45+
46+
47+ __all__ = (
48+ "MocketSocketCore" ,
49+ "MocketMode" ,
50+ "SSL_PROTOCOL" ,
51+ "hexdump" ,
52+ "hexload" ,
53+ "get_mocketize" ,
54+ )
You can’t perform that action at this time.
0 commit comments