fedora-modularity / meta-test-family

Meta test family (MTF) is a tool to test components of a modular Fedora:
https://docs.pagure.org/modularity/
Other
8 stars 12 forks source link

Code Review: fix pylint/pyflakes errors #21

Open bkabrda opened 7 years ago

bkabrda commented 7 years ago

Hi, so I was asked to do a detailed code review for MTF, so here's the first issue - code style and statically checked warnings errors.

Since the outputs that I got from running pylint/pyflakes are quite sizable, I'll just comment on some general points. You can install these tools yourselves (pip install --user pylint pyflakes) and run them on the code (pylint moduleframework/, pyflakes moduleframework/) to see what's wrong. So here's some general comments from my code observations and pylint/pyflakes output:

I'd highly recommend registering at some CI and adding runs of pylint/pyflakes to make check in order to keep code quality high.

[1] https://www.python.org/dev/peps/pep-0008/#indentation [2] https://docs.python.org/2/library/re.html#module-re

alexxa commented 7 years ago

Hi, @bkabrda . Many thanks for the comprehensive code review. Can you please share who asked you to do it? The thing is that I came to the project a while ago, and did the same, and I'm aware of all the issues you wrote here as well as mtf as a single command, no need for makefiles, etc and etc, and working on them, just never reported all of those as an issue here, but in words to the other project members. Yeah, my bad, I should. And also, are you just reporting or also going to fix those? I just want to avoid further work duplication

bkabrda commented 7 years ago

@alexxa sure, @phracek asked me to do it :) Since I'm pretty occupied otherwise, I won't be working towards fixing these.

TomasTomecek commented 7 years ago

I actually initiated the work of doing complete review of mtf. The reason behind it is very simple: if we are suppose to use mtf to test modules and containers, I wanna make sure that mtf has high-quality code with polished workflows and is doing the right things.

Edit: looking in trello, I second Slavek: code review was initiated by Petr, not me.

alexxa commented 7 years ago

@bkabrda @TomasTomecek thanks. It seems we have a communication issue with @phracek =( @TomasTomecek +1 on remark about enhancing MTF code quality.

phracek commented 7 years ago

@bkabrda @TomasTomecek @alexxa This is a bit longer issue. I would split it into more issues. What do you think?

TomasTomecek commented 7 years ago

I would probably turn original Slavek's post into checklist and just mark which items are already solved,