-
Notifications
You must be signed in to change notification settings - Fork 7
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
Adopt pylint and lint the existing modules #25
Comments
do you plan to work on that @safa-topal? also, do you recommend adding that to the workflow check like github actions, for example? |
is anybody working on this?
|
Actually I changed idea. |
I'll probably leave @TibsAtWork to comment! |
I'm a bit out-of-date with the current best practices, so a useful task, in itself, would be to do the research and report back on what is considered the best thing to do at the moment. Historically, I believe people have either used pylint (which tends to require configuration) or other more simpler opinionated (less configurable) tools like flake8 (there certainly used to be more than one choice for this sort of tool, but flake8 was one I used). These can be run as another part of the GitHub workflow - see the https://github.com/Aiven-Open/metadata-parser/tree/main/.github/workflows directory for existing workflows. There's also the possibility of running black at some stage, to reformat the code in a consistent way - I've seen this done using a pre-commit hook (see https://black.readthedocs.io/en/stable/integrations/source_version_control.html). One might then run black in the CI toolchain to check that there are no changes - this makes sure contributors are remembering to run it!. It would obviously be up to @ftisiot whether he's happy to have black run on the codebase Since we don't have particular ideas on what should be done, any contribution is likely to make things better! |
What is currently missing?
A set of standards around code style would help code readability and consistency among different modules of the project. Pylint seems like the way to go option.
Is this a feature you would work on yourself?
The text was updated successfully, but these errors were encountered: