Skip to content

Commit 44ddaa5

Browse files
[pre-commit.ci] pre-commit autoupdate (#223)
<!--pre-commit.ci start--> updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.3.0...v4.6.0) - [github.com/asottile/yesqa: v1.3.0 → v1.5.0](asottile/yesqa@v1.3.0...v1.5.0) - [github.com/Zac-HD/shed: 0.10.1 → 2024.3.1](Zac-HD/shed@0.10.1...2024.3.1) - [github.com/PyCQA/flake8: 4.0.1 → 7.0.0](PyCQA/flake8@4.0.1...7.0.0) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.3.0...v4.6.0) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.3.0...v4.6.0) - [github.com/sirosen/check-jsonschema: 0.17.1 → 0.28.3](python-jsonschema/check-jsonschema@0.17.1...0.28.3) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <[email protected]>
1 parent e5b7392 commit 44ddaa5

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: 'v4.3.0'
3+
rev: 'v4.6.0'
44
hooks:
55
- id: check-merge-conflict
66
exclude: "rst$"
77
- repo: https://github.com/asottile/yesqa
8-
rev: v1.3.0
8+
rev: v1.5.0
99
hooks:
1010
- id: yesqa
1111
- repo: https://github.com/sondrelg/pep585-upgrade
@@ -16,7 +16,7 @@ repos:
1616
- --futures=true
1717
exclude: "^github|^k8s|^containerd"
1818
- repo: https://github.com/Zac-HD/shed
19-
rev: 0.10.1
19+
rev: 2024.3.1
2020
hooks:
2121
- id: shed
2222
args:
@@ -28,12 +28,12 @@ repos:
2828
- rst
2929
exclude: "^github|^k8s|^containerd"
3030
- repo: https://github.com/PyCQA/flake8
31-
rev: '4.0.1'
31+
rev: '7.0.0'
3232
hooks:
3333
- id: flake8
3434
exclude: "^github|^k8s|^containerd"
3535
- repo: https://github.com/pre-commit/pre-commit-hooks
36-
rev: 'v4.3.0'
36+
rev: 'v4.6.0'
3737
hooks:
3838
- id: check-case-conflict
3939
- id: check-json
@@ -48,7 +48,7 @@ repos:
4848
- id: debug-statements
4949
# Another entry is required to apply file-contents-sorter to another file
5050
- repo: https://github.com/pre-commit/pre-commit-hooks
51-
rev: 'v4.3.0'
51+
rev: 'v4.6.0'
5252
hooks:
5353
- id: file-contents-sorter
5454
files: |
@@ -66,7 +66,7 @@ repos:
6666
# - -ignore
6767
# - 'SC1004:'
6868
- repo: https://github.com/sirosen/check-jsonschema
69-
rev: 0.17.1
69+
rev: 0.28.3
7070
hooks:
7171
- id: check-github-actions
7272
- id: check-github-workflows

platform_container_runtime/containerd_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ async def read(
334334
architecture: str,
335335
os: str,
336336
descriptor: Descriptor,
337-
) -> "ImageManifest":
337+
) -> ImageManifest:
338338
manifest = await cls._read_manifest(
339339
clients,
340340
namespace=namespace,
@@ -588,7 +588,7 @@ def url(self) -> str:
588588
@trace
589589
async def read(
590590
cls, clients: Clients, namespace: str, name: str, architecture: str, os: str
591-
) -> "Image":
591+
) -> Image:
592592
resp = await clients.images.Get(
593593
GetImageRequest(name=name),
594594
metadata=Metadata(namespace=namespace),

platform_container_runtime/cri_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def new_func(self: "CriClient", *args: Any, **kwargs: Any) -> Any:
5252
class CriClient:
5353
def __init__(self, channel: grpc.aio.Channel) -> None:
5454
self._channel = channel
55-
self._cri_client: Optional["CriClient"] = None
55+
self._cri_client: Optional[CriClient] = None
5656

5757
async def __aenter__(self) -> "CriClient":
5858
try:

platform_container_runtime/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def __aexit__(self, *args: Any, **kwargs: Any) -> None:
2222

2323

2424
def asyncgeneratorcontextmanager(
25-
func: Callable[..., T_co]
25+
func: Callable[..., T_co],
2626
) -> Callable[..., AbstractAsyncContextManager[T_co]]:
2727
@functools.wraps(func)
2828
def wrapper(*args: Any, **kwargs: Any) -> AbstractAsyncContextManager[T_co]:

tests/integration/conftest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ def config_factory(
5050
cri_address: str, runtime_address: str, kube_config: KubeConfig, kube_node: str
5151
) -> Callable[..., Config]:
5252
def _f(**kwargs: Any) -> Config:
53-
defaults = dict(
54-
server=ServerConfig(host="0.0.0.0", port=8080),
55-
node_name=kube_node,
56-
cri_address=cri_address,
57-
runtime_address=runtime_address,
58-
kube=kube_config,
59-
)
53+
defaults = {
54+
"server": ServerConfig(host="0.0.0.0", port=8080),
55+
"node_name": kube_node,
56+
"cri_address": cri_address,
57+
"runtime_address": runtime_address,
58+
"kube": kube_config,
59+
}
6060
kwargs = {**defaults, **kwargs}
6161
return Config(**kwargs)
6262

tests/integration/conftest_kube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _kube_config_cluster_payload(_kube_config_payload: dict[str, Any]) -> Any:
157157

158158
@pytest.fixture(scope="session")
159159
def _cert_authority_data_pem(
160-
_kube_config_cluster_payload: dict[str, Any]
160+
_kube_config_cluster_payload: dict[str, Any],
161161
) -> Optional[str]:
162162
ca_path = _kube_config_cluster_payload["certificate-authority"]
163163
if ca_path:

0 commit comments

Comments
 (0)