Skip to content

Commit 2f2e548

Browse files
committed
Changes from ruff.
1 parent 14478af commit 2f2e548

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
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
@@ -15,7 +15,7 @@ repos:
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]

mocket/socket.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import os
88
import select
99
import socket
10-
import ssl
11-
from datetime import datetime, timedelta
1210
from json.decoder import JSONDecodeError
1311
from types import TracebackType
1412
from typing import Any, Type
@@ -25,7 +23,6 @@
2523
Address,
2624
ReadableBuffer,
2725
WriteableBuffer,
28-
_PeerCertRetDictType,
2926
_RetAddress,
3027
)
3128
from mocket.utils import hexdump, hexload

mocket/utils.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from 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

1515
SSL_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+
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy