Skip to content

Commit

Permalink
fix: correct codespell issues now that it's running properly
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Jan 14, 2025
1 parent b78701c commit f545530
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/charms/operator_libs_linux/v0/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion lib/charms/operator_libs_linux/v0/sysctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/charms/operator_libs_linux/v2/snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,6 @@ skip = [
]
ignore-words-list = [
"assertIn",
"fpr",
]
quiet-level = 3 # disable warnings about (1) wrong encoding + (2) binary files

0 comments on commit f545530

Please sign in to comment.