Skip to content

[ci] Enable pylint for tests/python/ci#11666

Merged
driazati merged 1 commit into
apache:mainfrom
driazati:pylint_ci
Jun 23, 2022
Merged

[ci] Enable pylint for tests/python/ci#11666
driazati merged 1 commit into
apache:mainfrom
driazati:pylint_ci

Conversation

@driazati

@driazati driazati commented Jun 10, 2022

Copy link
Copy Markdown
Member

This fixes up the pylint issues as part of #11414 for the CI tests

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

cc @Mousius @areusch

@github-actions github-actions Bot requested review from Mousius and areusch June 10, 2022 17:37
@areusch

areusch commented Jun 10, 2022

Copy link
Copy Markdown
Contributor

thanks @driazati, please check off the relevant items in the GH issue when you merge

@Mousius Mousius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It appears we're disabling a lot of the rules in this PR, could you help me understand the rationale a bit @driazati? 😸

Comment thread tests/python/ci/test_ci.py Outdated
reviews = [{"user": {"login": r}} for r in existing_review_users]
requested_reviewers = [{"login": r} for r in requested_reviewers]
proc = subprocess.run(
proc = subprocess.run( # pylint: disable=subprocess-run-check

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking at the subprocess-run-check linter rule, shouldn't we pass check explicitly to resolve it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's checked manually to add some extra error info

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you set check=False, that continues to work as far as I can tell?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That still trips pylint as far as I can tell, it wants to see check=True only

@Mousius Mousius Jun 15, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you check again? I tried it locally and it worked 🤔

Comment thread tests/python/ci/test_ci.py Outdated
Comment thread tests/python/ci/test_ci.py Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Built docs for commit 3e14f5f4263039401831d4ed32f3ffa6353f3e19 can be found here.

@Mousius Mousius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there's just two outstanding things here @driazati, ping me once they're in so we can unblock #11714 😸

Comment thread tests/python/ci/test_utils.py
Comment thread tests/python/ci/test_mergebot.py Outdated
@driazati

Copy link
Copy Markdown
Member Author

@Mousius this is ready for another look

@github-actions

Copy link
Copy Markdown
Contributor

Built docs for commit a3d981345a0b314e7d5ad52f07495d84a513891c can be found here.

@Mousius Mousius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good @driazati, just has some merge cornflakes this morning - happy for you to merge once resolved.

@github-actions

Copy link
Copy Markdown
Contributor

Built docs for commit c32dbf4 can be found here.

This fixes up the pylint issues as part of #11414 for the CI tests
@github-actions

Copy link
Copy Markdown
Contributor

Built docs for commit 2b41397 can be found here.

@driazati driazati merged commit 0d14519 into apache:main Jun 23, 2022
blackkker pushed a commit to blackkker/tvm that referenced this pull request Jul 7, 2022
This fixes up the pylint issues as part of apache#11414 for the CI tests
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