From aede441f0c7e47b7d06e65fd1f3db302e2c1e238 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:46:27 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.9.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.9.0...26.1.0) - [github.com/PyCQA/isort: 6.1.0 → 7.0.0](https://github.com/PyCQA/isort/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06fb7cd..46d035e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,13 +24,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.9.0 + rev: 26.1.0 hooks: - id: black args: ["--line-length", "100"] - repo: https://github.com/PyCQA/isort - rev: 6.1.0 + rev: 7.0.0 hooks: - id: isort files: \.py$ From 816cacede4a8adbaeb98ffc3524e1ef021562d1c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:46:57 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/conftest.py | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 6aff60e..3232691 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,13 +7,11 @@ @pytest.fixture def cluster_ca_file(tmpdir) -> str: cluster_ca_file = tmpdir.join("cluster_ca_file") - cluster_ca_file.write( - """ + cluster_ca_file.write(""" -----BEGIN CERTIFICATE----- NotARealCertificate== -----END CERTIFICATE----- - """ - ) + """) yield str(cluster_ca_file) cluster_ca_file.remove() @@ -21,13 +19,11 @@ def cluster_ca_file(tmpdir) -> str: @pytest.fixture def client_ca_file(tmpdir) -> str: client_ca_file = tmpdir.join("client_ca_file") - client_ca_file.write( - """ + client_ca_file.write(""" -----BEGIN CERTIFICATE----- NotARealCertificate== -----END CERTIFICATE----- - """ - ) + """) yield str(client_ca_file) client_ca_file.remove() @@ -35,13 +31,11 @@ def client_ca_file(tmpdir) -> str: @pytest.fixture def client_key_file(tmpdir) -> str: client_key_file = tmpdir.join("client_key_file") - client_key_file.write( - """ + client_key_file.write(""" -----BEGIN CERTIFICATE----- NotARealCertificate== -----END CERTIFICATE----- - """ - ) + """) yield str(client_key_file) client_key_file.remove() @@ -49,8 +43,7 @@ def client_key_file(tmpdir) -> str: @pytest.fixture def k8s_config_path(tmpdir, client_key_file, client_ca_file, cluster_ca_file): k8s_config_path = tmpdir.join("k8s_config") - k8s_config_path.write( - f""" + k8s_config_path.write(f""" apiVersion: v1 clusters: - cluster: @@ -75,7 +68,6 @@ def k8s_config_path(tmpdir, client_key_file, client_ca_file, cluster_ca_file): user: client-certificate: {client_ca_file} client-key: {client_key_file} -""" - ) +""") yield k8s_config_path k8s_config_path.remove()