Skip to content
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

Fix static checker #3734

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

smitterl
Copy link
Contributor

@smitterl smitterl commented Aug 4, 2023

Alternative solution for #3732
Ignore I1101 but fix E721

Fixes for E721 applied as indicated by https://github.com/PyCQA/pycodestyle/blob/1c2147c703e3b934675b270391fab03cb30d73a2/CHANGES.txt#L12

@smitterl smitterl force-pushed the fix_static_checker branch 2 times, most recently from f1a94e1 to 288d327 Compare August 4, 2023 09:17
@@ -235,7 +235,7 @@ def getTtestPvalue(self, fs_dict1, fs_dict2, paired=None, ratio=None):

for line in range(len(s1)):
tmp = []
if type(s1[line]) != list:
if not isinstance(s1[line]), list):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not isinstance(s1[line]), list):
if not isinstance(s1[line], list):

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Fix several E721 errors. The latest pycodestyle (prev. pep8 package)
 demands this.

I1101 is enforced with recent updates. This causes a lot of problems.
It complains about missing information about members of imports.
Let's ignore this as we want to check our own code mainly.

Signed-off-by: Sebastian Mitterle <[email protected]>
Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yingshun Yingshun merged commit 760c61e into avocado-framework:master Aug 7, 2023
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants