From 1367df1002324aa7b874d6ca569a2936757b12ee Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 17 Jan 2025 16:21:52 -0400 Subject: [PATCH] build: Codespell fix (#587) --- lib/charms/vault_k8s/v0/vault_kv.py | 4 ++-- lib/charms/vault_k8s/v0/vault_managers.py | 2 +- tox.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/charms/vault_k8s/v0/vault_kv.py b/lib/charms/vault_k8s/v0/vault_kv.py index a1efb8dc..706e36b5 100644 --- a/lib/charms/vault_k8s/v0/vault_kv.py +++ b/lib/charms/vault_k8s/v0/vault_kv.py @@ -335,7 +335,7 @@ class VaultKvProviderEvents(ops.ObjectEvents): class VaultKvProvides(ops.Object): - """Class to be instanciated by the providing side of the relation.""" + """Class to be instantiated by the providing side of the relation.""" on = VaultKvProviderEvents() # type: ignore @@ -516,7 +516,7 @@ class VaultKvRequireEvents(ops.ObjectEvents): class VaultKvRequires(ops.Object): - """Class to be instanciated by the requiring side of the relation.""" + """Class to be instantiated by the requiring side of the relation.""" on = VaultKvRequireEvents() # type: ignore diff --git a/lib/charms/vault_k8s/v0/vault_managers.py b/lib/charms/vault_k8s/v0/vault_managers.py index 221e926b..8ad08a1b 100644 --- a/lib/charms/vault_k8s/v0/vault_managers.py +++ b/lib/charms/vault_k8s/v0/vault_managers.py @@ -458,7 +458,7 @@ def tls_file_available_in_charm(self, file: File) -> bool: raise def ca_certificate_is_saved(self) -> bool: - """Return wether a CA cert and its private key are saved in the charm.""" + """Return whether a CA cert and its private key are saved in the charm.""" return self.ca_certificate_secret_exists() or self.tls_file_pushed_to_workload(File.CA) def _restart_vault(self) -> None: diff --git a/tox.ini b/tox.ini index 656d2d32..d068a5fe 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = [testenv:lint] description = Check code against coding style standards commands = - codespell {tox_root} + codespell {[vars]all_path} ruff check {[vars]all_path} ruff format --check {[vars]all_path}