-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[ci] Enable pylint for tests/python/ci #11666
Conversation
43af363
to
489cad3
Compare
thanks @driazati, please check off the relevant items in the GH issue when you merge |
4b8b843
to
b330d8c
Compare
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.
It appears we're disabling a lot of the rules in this PR, could you help me understand the rationale a bit @driazati? 😸
tests/python/ci/test_ci.py
Outdated
@@ -49,7 +38,7 @@ def run(pr_body, requested_reviewers, existing_review_users, expected_reviewers) | |||
git.run("remote", "add", "origin", "https://github.com/apache/tvm.git") | |||
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 |
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.
Looking at the subprocess-run-check
linter rule, shouldn't we pass check
explicitly to resolve it?
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.
It's checked manually to add some extra error info
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 you set check=False
, that continues to work as far as I can tell?
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.
That still trips pylint as far as I can tell, it wants to see check=True
only
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.
Can you check again? I tried it locally and it worked 🤔
Built docs for commit 3e14f5f4263039401831d4ed32f3ffa6353f3e19 can be found here. |
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.
ab9d4b0
to
a3d9813
Compare
@Mousius this is ready for another look |
Built docs for commit a3d981345a0b314e7d5ad52f07495d84a513891c can be found here. |
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.
Looks good @driazati, just has some merge cornflakes this morning - happy for you to merge once resolved.
This fixes up the pylint issues as part of apache#11414 for the CI tests
This fixes up the pylint issues as part of apache#11414 for the CI tests
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