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 linting in examples folder #180
Conversation
Current issues:
A possible solution as per pytorch/pytorch#701
any help is appreciated. |
Should we use
@lkevinzc What do you think? |
How about locally we do lint for all codes including those under |
I think we can ignore the import errors in this PR. It's better to have a CI to make sure all the examples can run with the latest code. We can track this in another issue. |
LGTM. |
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.
Hi @thinkcache, can try this Makefile to ignore the import errors.
@thinkcache For the lint error in |
Co-authored-by: Keming <kemingy94@gmail.com>
Latest run:
ref: pytorch/pytorch#701 @kemingy please review. |
That's weird. I can pass all the lint locally. How come it doesn't have consistent results? From the CI results, it seems reasonable. But I guess it's also okay to ignore What do you think? @lkevinzc pylint -j 8 --recursive=y --disable=R,C,import-error examples --generated-members=numpy.*,torch.*,cv2.*,cv.* |
Figured out that CI got error messages because the py environment does not install mosec dev package. I tested locally and found if I |
@thinkcache Could you help to add one line |
@lkevinzc |
Issue #136