diff --git a/lib/charms/operator_libs_linux/v0/apt.py b/lib/charms/operator_libs_linux/v0/apt.py index 1ea57c20..42b931df 100644 --- a/lib/charms/operator_libs_linux/v0/apt.py +++ b/lib/charms/operator_libs_linux/v0/apt.py @@ -238,7 +238,7 @@ def _apt( Args: command: the command given to `apt-get` package_names: a package name or list of package names to operate on - optargs: an (Optional) list of additioanl arguments + optargs: an (Optional) list of additional arguments Raises: PackageError if an error is encountered @@ -1143,7 +1143,7 @@ def _get_key_by_keyid(keyid: str) -> str: keyid: An 8, 16 or 40 hex digit keyid to find a key for Returns: - A string contining key material for the specified GPG key id + A string containing key material for the specified GPG key id Raises: @@ -1693,7 +1693,7 @@ def _deb822_options_to_repos( msg = ( "Since 'Suites' (line {suites_line}) specifies" " a path relative to 'URIs' (line {uris_line})," - " 'Components' must be ommitted." + " 'Components' must be omitted." ).format( suites_line=line_numbers.get("Suites"), uris_line=line_numbers.get("URIs"), diff --git a/lib/charms/operator_libs_linux/v0/sysctl.py b/lib/charms/operator_libs_linux/v0/sysctl.py index 8245835e..34cb97be 100644 --- a/lib/charms/operator_libs_linux/v0/sysctl.py +++ b/lib/charms/operator_libs_linux/v0/sysctl.py @@ -52,7 +52,7 @@ def __init__(self, *args): self.framework.observe(self.on.remove, self._on_remove) def _on_install(self, _): - # Altenatively, read the values from a template + # Alternatively, read the values from a template sysctl_data = {"net.ipv4.tcp_max_syn_backlog": "4096"}} try: diff --git a/lib/charms/operator_libs_linux/v2/snap.py b/lib/charms/operator_libs_linux/v2/snap.py index d14f864f..90da70a4 100644 --- a/lib/charms/operator_libs_linux/v2/snap.py +++ b/lib/charms/operator_libs_linux/v2/snap.py @@ -893,7 +893,7 @@ def __getitem__(self, snap_name: str) -> Snap: @property def snapd_installed(self) -> bool: - """Check whether snapd has been installled on the system.""" + """Check whether snapd has been installed on the system.""" return os.path.isfile("/usr/bin/snap") def _load_available_snaps(self) -> None: diff --git a/pyproject.toml b/pyproject.toml index 6eadb78d..a92fad36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -213,5 +213,6 @@ skip = [ ] ignore-words-list = [ "assertIn", + "fpr", ] quiet-level = 3 # disable warnings about (1) wrong encoding + (2) binary files