-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/recover linters #371
Conversation
- name: Check API Docs updated | ||
run: tox -e check-api-docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recovering the check-api-docs
# C0209: consider-using-fstring, # kept as no harm | ||
# W1514: unspecified-encoding, # kept as no harm | ||
# R1734: use-list-literal, # kept as no harm | ||
# R1735: use-dict-literal, # kept as no harm | ||
# R1732: consider-using-with | ||
# W0237: arguments-renamed | ||
# R1733: unnecessary-dict-index-lookup | ||
# R1710: inconsistent-return-statements | ||
# R1714: consider-using-in | ||
# R1729: use-a-generator | ||
# R0402: consider-using-from-import | ||
# W0640: cell-var-from-loop | ||
# C0206: consider-using-dict-items |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these were introduced between pylint 2.6.0 to 2.11.1. Now we have introduced Tomte and making that upgrade, we do not want to change our linter settings so these must be skipped.
@@ -277,7 +277,7 @@ def test_extract_wrong_file_type(self): | |||
"""Test for extract method wrong file type.""" | |||
source = "file.wrong" | |||
target = "target-folder" | |||
with self.assertRaises(Exception): | |||
with self.assertRaises(ValueError): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pylint informed that this check was too generic. I could skip the failure, but it seemed very easy to solve. Would you prefer to revert this change and skip the lint error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the test pass no need to revert the change
@@ -412,7 +412,7 @@ def start(self) -> bool: | |||
self._thread = Thread( | |||
target=self._thread_target, name=self.__class__.__name__ # type: ignore # loop was set in set_loop | |||
) | |||
self._thread.setDaemon(True) | |||
self._thread.daemon = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this an api change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A deprecation: #371 (comment)
Proposed changes
Fixes
n/a
Types of changes
What types of changes does your code introduce to agents-aea?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.develop
branch (left side). Also you should start your branch off ourdevelop
.