Skip to content

Commit

Permalink
Fix codespell checks (#680)
Browse files Browse the repository at this point in the history
* fix typo

* move codespell config to one place only

* codespell: file to skip does not exist

* codespell: ignore translated files completely; remove their word from words to ignore

* codespell needs the lowercase version
  • Loading branch information
kkotenko authored Apr 22, 2024
1 parent fd19073 commit 7d89361
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[codespell]
ignore-words-list =ba,confgure,ist,Ende,Variablen,Indention,cript
ignore-words-list=confgure,indention,cript
skip=translated.robot,de.robot,pl_and_de.robot
2 changes: 0 additions & 2 deletions .github/workflows/code-spell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ jobs:
uses: codespell-project/actions-codespell@master
with:
only_warn: 1
skip: "pyproject_confgure.toml"
ignore_words_list: ba,confgure,ist,Ende,Variablen,Indention,cript
2 changes: 1 addition & 1 deletion robotidy/transformers/NormalizeSeparators.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def handle_spaces(self, statement, has_pipes, only_indent=False):
if align_continuation:
if first_data_token:
first_col_width += max(len(token.value), 3) - 3 # remove ... token length
# Check if first line is not longer than allowed line length - we cant align over limit
# Check if first line is not longer than allowed line length - we can't align over limit
align_continuation = align_continuation and first_col_width < self.allowed_line_length
first_data_token = False
elif not is_sep_after_first_data_token and token.type != Token.EOL:
Expand Down

0 comments on commit 7d89361

Please sign in to comment.