Skip to content

Commit

Permalink
Fix codespell lint
Browse files Browse the repository at this point in the history
Fix the typo in CHANGELOG.md.

Fix codespell thinking that `assertIn` used in unit tests is a typo.
  • Loading branch information
igo95862 committed Aug 11, 2024
1 parent da9fa67 commit db764fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ will only create a limited number of namespaces.

Profiles might receive a well tested namespaces limits in the future version.

## Dependenices changes
## Dependencies changes

* GUI has been ported to PyQt6.

Expand Down
15 changes: 14 additions & 1 deletion tools/run_linters.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def run_isort() -> bool:
return False


IGNORE_CODESPELL_WORDS = ("assertIn",)


def run_codespell() -> bool:
print("Running: codespell", file=stderr)
try:
Expand All @@ -88,6 +91,8 @@ def run_codespell() -> bool:
"--enable-colors",
"--context",
"3",
"--ignore-words-list",
*IGNORE_CODESPELL_WORDS,
*list_of_files,
],
check=True,
Expand All @@ -114,7 +119,15 @@ def run_codespell_on_commits() -> bool:
)

run(
args=("codespell", "--enable-colors", "--context", "3", "-"),
args=(
"codespell",
"--enable-colors",
"--context",
"3",
"--ignore-words-list",
*IGNORE_CODESPELL_WORDS,
"-",
),
cwd=PROJECT_ROOT_PATH,
check=True,
stdin=git_log.stdout,
Expand Down

0 comments on commit db764fa

Please sign in to comment.