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$ 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()