-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Rename checkers/async.py to async_checker.py to import from another module #10060
Conversation
Thank you for opening the PR. Let's merge this but also if you want to add tests for the async checker functional tests already exists and are nicer to use imo. :) |
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #10060 +/- ##
=======================================
Coverage ? 95.80%
=======================================
Files ? 174
Lines ? 18959
Branches ? 0
=======================================
Hits ? 18163
Misses ? 796
Partials ? 0
|
This comment has been minimized.
This comment has been minimized.
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.
This should probably have a breaking
news fragment as it is breaking change.
Is it breaking if there was no way to import it by name before? |
Can't you use |
Then does pylint need to change anything? |
Ah I see this is mentioned in the body:
Agree a breaking fragment would |
Thanks for review everybody ππ» |
It's not a blocker, 4.0 is the current version under development. |
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.
(I approved because I thought like Jacob that it was impossible to import so it did not break anything). Considering Daniel's point, do you mind adding a changelog @bgb10 ?
@Pierre-Sassoulas Added :) |
for more information, see https://pre-commit.ci
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 41126dd |
Thank you,for noticing and fixing this ! (Autofix of 'noticing' to 'nothing'... mobile is dangerous, huhu) |
Type of Changes
Description
Hi. Thank you for maintaining this great library :)
I wanted to make test code for
async
checkers, but since name of async checker isasync.py
, AsyncChecker class in this file cannot be imported anywhere. ('async' is keyword!) Indeed, we imported this nowhere before (just registered checker to linter as below), but to write test code for AsyncChecker, file rename is must.After this PR merged, I'll want to make unit test code for AsyncChecker and adding some functionality.