-
-
Notifications
You must be signed in to change notification settings - Fork 375
style: enable unused import pylint rule (W0611) and fix resulting violations #6668
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
base: main
Are you sure you want to change the base?
Conversation
python/grass/pygrass/modules/grid/testsuite/test_pygrass_modules_grid_doctests.py
Outdated
Show resolved
Hide resolved
echoix
left a comment
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.
Great work! Glad you found an easy one. I’m checking here with others about the underlying problems.
| # for now it is the only place where it works | ||
| grass.gunittest.utils.do_doctest_gettext_workaround() | ||
|
|
||
| # tests.addTests(doctest.DocTestSuite(gmodules.shortcuts)) |
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.
@petrasovaa Do you remember how this test works and why it is commented out? It was the usage of the unused import
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.
No, and no time to look at it now, so I am for removing the import.
| tests.addTests(doctest.DocTestSuite(grid.grid)) | ||
| tests.addTests(doctest.DocTestSuite(grid.patch)) | ||
| tests.addTests(doctest.DocTestSuite(grid.split)) | ||
| # tests.addTests(doctest.DocTestSuite(shortcuts)) |
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.
Again, what is the shortcuts? It’s the source of the unused imports
…es_grid_doctests.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
How to handle the remaining 1000+ issues in the gui folder? |
I am not sure I fully understand the output, but I think it's just 9 files, we could fix those. |
|
If it’s really only this, sure it’s a good idea to fix these right away |
Enable pylint rule W0611 (unused-import) and clean up code to comply.
Changes: