-
-
Notifications
You must be signed in to change notification settings - Fork 19
Make paths more generic #9
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
|
Thanks. Please fix the codefactor and ask for a request when you're ready |
|
Hey @rgaudin , have fixed it. Should work now. Please have a 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.
thanks for your PR but unfortunately it's not acceptable:
- it's not working!
str.replace()does not replace in place. - you did not respect the code formatting (black). I'm not sure why the tests didn't run on github but should they have they would have told you that. Should you have launched the tests locally, you would have know also.
- don't exit on error with a useless message. Raise with an informative message and let it crash.
gen_extra_jumps()is too verbose for what it does. should be simplified.- in
get_directory_count_and_string()use already imported pathlib and.partsinstead of your comprehension loop - in same function, the
mapis absolutely useless. What is even the point of thatdirectory_stringvariable?
Please, don't submit PR for code that you haven't run and tested. I've probably spent more time reviewing your PR than you did to write it… and the issue is not fixed yet. That's counter-productive.
Also, when submitting a PR, use the Request feature to request a review. That way we get a notification and know you're done working on your PR.
|
Did a quick fix and ran all tests. I am not going to propose even a single line of untested code. It works now and I've tried to keep the code as short as possible. Also, I did wanted to Request for review previously but I cannot assign any reviewer (GitHub won't let me for this repo). I can only re-request. |
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, thanks for fixing it all 👍
This makes the fix_ogvjs_dist.py more generic by adding functionality as mentioned in issue #1 .
@rgaudin @kelson42 please suggest changes/improvements.
Fixes #1