-
-
Notifications
You must be signed in to change notification settings - Fork 15
Hide private methods from public API #57
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
=======================================
Coverage 97.60% 97.60%
=======================================
Files 2 2
Lines 125 125
Branches 31 31
=======================================
Hits 122 122
Misses 1 1
Partials 2 2
|
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 to me
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.
One thought, otherwise LGTM
|
||
return False | ||
|
||
def unasync_file(self, filepath): |
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.
Hmm, I actually use this API at work because it's a part of the existing code generator. All others I agree are private.
Something I've been thinking of is unasync should have a simple CLI, that'd fix the issue of not wanting to use it for a build system.
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.
Interesting! Can you share more about the use case?
Yeah, I guess a cli would be nice. For hip, I plan to use hip from nox, so a Python interface is enough.
I marked Rule.unasync_file as public, please take another look.
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 also use it from the Python interface: https://github.com/elastic/elasticsearch-py/pull/1203/files#diff-11742648bf5996c880c7a08632da8eddR305
Maybe I can put together something for CLI, I can see it being useful for people using tox
and pre-commit
.
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.
Wow, awesome! Sure, a cli would be useful, just not to us right now
No description provided.