Skip to content

Commit

Permalink
fix: new codespell "discoveries"
Browse files Browse the repository at this point in the history
While at it, remove the incorrect spelling quirk for indentation.

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
  • Loading branch information
sergiusens committed May 27, 2024
1 parent bc4ba44 commit 901b4ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[codespell]
ignore-words-list = buildd,crate,keyserver,comandos,ro,astroid
ignore-words-list = buildd,crate,keyserver,comandos,ro,astroid,assertIn,socio-economic
skip = waf,*.tar,*.xz,*.zip,*.bz2,*.7z,*.gz,*.deb,*.rpm,*.snap,*.comp,*.gpg,*.pyc,*.png,*.ico,*.jar,*.so,changelog,.git,.hg,.mypy_cache,.tox,.venv,venv,_build,buck-out,__pycache__,build,dist,.vscode,parts,stage,prime,test_appstream.py,./snapcraft.spec,./.direnv,./.pytest_cache,.ruff_cache,*.asc
quiet-level = 4

Expand Down
2 changes: 1 addition & 1 deletion snapcraft_legacy/internal/meta/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def from_dict(cls, hook_dict: Dict[str, Any], hook_name: str) -> "Hook":

environment = hook_dict.get("environment", dict())
for k, v in environment.items():
# Ensure alll environment values are converted to string.
# Ensure all environment values are converted to string.
environment[k] = str(v)

return Hook(
Expand Down
3 changes: 1 addition & 2 deletions tests/legacy/unit/project/test_project_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,10 @@ def test_tab_in_yaml(self):
)

self.assertThat(raised.source, Equals(snapcraft_yaml_file_path))
# libyaml had a spelling mistake indentation/intendation
self.assertThat(
raised.message,
MatchesRegex(
"found a tab character that violates? (indentation|intendation)"
"found a tab character that violates? indentation"
" on line 5, column 1"
),
)
Expand Down

0 comments on commit 901b4ec

Please sign in to comment.