Skip to content

Commit

Permalink
Reduce codespell and pytest warnings (#663)
Browse files Browse the repository at this point in the history
* use raw strings for regular expressions

* chechbox -> checkbox

---------

Co-authored-by: Konstantin Kotenko <kko@linear.de>
  • Loading branch information
kkotenko and kkotenko authored Mar 8, 2024
1 parent 1cf6c4f commit f73f606
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Keyword with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Keyword with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Keyword with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Keyword with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Keyword with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Test with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Test with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Test with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Test with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Example of alignment to second column of Documentation
... note that you must give some unique column/value pair that is used to select the row
...
... == Examples ==
... # makes sure chechbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... # makes sure checkbox is unchecked in column Owner in a row where Name is "NORDEA FINANS"
... Table_CheckboxUnSelect Owner Name NORDEA FINANS
Test with documentation and keyword calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_embedded_variables(self):

def test_embedded_with_pattern(self):
self.compare(
config=":replace_pattern=(?i)rename\s?with\s.+variable$:replace_to=New_Name_${keyword}_And_${var}",
config=r":replace_pattern=(?i)rename\s?with\s.+variable$:replace_to=New_Name_${keyword}_And_${var}",
source="library_embedded_var_pattern.robot",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_skip_keywords(self):
self.compare(
source="tests.robot",
expected="skip_keywords.robot",
config=":line_length=80:skip_keyword_call=thisisakeyword:skip_keyword_call_pattern=(i?)sets\sthe\svariable",
config=r":line_length=80:skip_keyword_call=thisisakeyword:skip_keyword_call_pattern=(i?)sets\sthe\svariable",
target_version=">=5",
)

Expand Down
4 changes: 2 additions & 2 deletions tests/utest/test_skip.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ def test_skip_keyword_call(self, skip_keyword, names, disabled):
[
("Execute Javascript", ["Execute Javascript"], [True]),
("Execute Javascript", ["executejavascript"], [False]),
("(?i)execute\s?javascript", ["Execute Javascript"], [True]),
(r"(?i)execute\s?javascript", ["Execute Javascript"], [True]),
("executejavascript", ["Keyword"], [False]),
("Javascript", ["Execute Javascript"], [True]),
("^Javascript", ["Execute Javascript"], [False]),
("Execute", ["Execute Javascript"], [True]),
("Execute1", ["Execute Javascript"], [False]),
("Execute", ["Execute Javascript", "Execute Other Stuff", "Keyword"], [True, True, False]),
(
"(?i)Library\.",
r"(?i)Library\.",
["Library.Stuff", "Library2.Stuff", "library.Other_stuff", "library"],
[True, False, True, False],
),
Expand Down

0 comments on commit f73f606

Please sign in to comment.