-
Notifications
You must be signed in to change notification settings - Fork 15
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 pylint suggestions #29
Conversation
C0114: Missing module docstring (missing-module-docstring) fixed by adding the docstring C0116: Missing function or method docstring fixed by adding the docstring to main() W1514: Using open without explicitly specifying an encoding fixed by specifying the manpage encoding as UTF-8 W1510: Using subprocess.run without explicitly set `check` fixed by adding check=True argument R1722: Consider using sys.exit() fixed by separating print from exit, and using sys.exit(1)
e45aedb
to
f49897c
Compare
Rebased & ready for review. |
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.
ACK
pylint 1.14.5/bullseye/entrypoint.py
------------------------------------
Your code has been rated at 10.00/10
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.
ACK too.
Changes are needed for sys.exit for tests in any case, the script need to return properly and to not exit. Will raise PR after this.
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.
Small improvement
Co-authored-by: AbcSxyZ <[email protected]>
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.
ACK
In preparation of having automated linters, I ran pylint manually to fix any existing issues, so that we have a clean starting slate once I PR linters. Some issues I originally worked on have already been solved with #26 so I am working on top of that and making that blocking for this PR.
Fixes:
entrypoint.py
filemain()
-> fixed by adding a docstring 🤓executable_options()
-> fixed by specifying the manpage encoding as UTF-8check
, increate_datadir()
-> fixed by adding check=True argumentexecute()
-> fixed by separating print from exit, and using sys.exit(1). Although this is just a recommendation, I think it's good to just follow the recommendations - saves time having to argue 😁