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
PEP8 and minor fixes #115
PEP8 and minor fixes #115
Conversation
02588a2
to
f7e5d18
Compare
Hey Michal, I am happy to review this, but first do you mind rebasing it on the current master? |
Sure, that's of course not a problem. Or rather: it's my duty to make it "mergable" with master without any conflicts. The only one obstacle is my free time. I think I'll manage it in several days. |
No worries. If possible it would be nice to have it split up into smaller pull requests. It just makes the review easier. So don't feel like you need to do it all in one go. |
…ith travis CI pipelines.
…and significant code style violations (e.g. shadowing name from, defining unused parameters, violating naming conventions, etc..).
OK I brought it into 'mergable to master' state. This PR is ready to be review, although it's mainly only white-space change. Now it's clean as a "well written prose" :) |
Is it posible to split the PEP patch into smaller ones? It's really hard to review as a single patch. If you can't do this I can do it for you. It should be fairly straight forward to split it up. Also can you consolidate the other changes into a single patch? Why do you need to change the Travis file? |
Hey, I know it's large, but it takes just 30 minutes to review it all. All of these are whitespace changes so the review is just scrolling down. These all are unrelated changes, so you can do a few-days break in reviewing and then come back forgiving everything you read before.
I removed all the commits from august 2018 and started from current master's branch HEAD.
I added tox configuration, it's a test automation tool that cares for installing all dependencies in separate sterile virtual environments for each interpreter defined: python 2.7, 3.4, 3.5, 3.6, 3.7 and also pypy. It runs |
I have tidied up the travis changes as the three different commits changing the file is very hard to understand. I also split out the white space changes to make it easier to read and review. How does this branch look? https://github.com/alistair23/python-OBD/tree/alistair/pep-fixes |
You forgot to remove stages definition from the yml. Seems I have a trouble understanding your intentions. I don't know how you do a review, but I ussually analyze diff between two branches, not for separate commits, e.g. with creating github's Pull Request, as this one: https://github.com/brendan-w/python-OBD/pull/115/files. This view combines each commit into one big diff between two branches. Github makes it for you. |
The problem with just looking at the diff is then when the commits are merged you end up with a broken history. The CI breaks in the middle of your series which will make bisecting difficult. It also makes it difficult to revert if need be. |
It also ends up being confusing with multiple commits conflicting with each other. For example your series would check in the stages section in the travis.yml file, but apparently you didn't mean to. |
After some more research I have created hopefully the final PR for the PEP8 fixes. It is all based on your work. Can you please review the PR #141 and let me know if that works for you? You should be able to use GitHub to review the new PR. I have marked you as an author of the commits. I am sorry this has been such a hassle. Part of it is my lack of knowledge about PEP8. In future this process will be easier if you have clearly defined commits that can be cleanly applied and reviewed. |
I reviewed the PR #141. It's ok. I added a few comments clarifying why is it done this way. |
https://www.python.org/dev/peps/pep-0008/
The code becomes formatted in such way that autoformatters like
autopep8.py
does not affect it (finds the code style clean).Actions:
Next step is to add tox running pytest on supported python interpreters and flake8 linter.