-
Notifications
You must be signed in to change notification settings - Fork 42
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 style change #84
Comments
I'm okay with doing this but I'd like us to have a very good look at which other PEP8 style things we want to do and just do series of conversions that are only pep8 related and the most obvious changes only. It will of course force and and all open PR to conflict so we need to be mindful of that |
@tbreeds thanks for your answer, what I had in mind with this was just a start towards better defined pep8 rules.
It's a lot of change to have all at the same time, so we could also apply only 1 or 2 rules at a time. |
I'd actually (I think) like to see E123 and E125 removed from the ignore list
Sure they all look fine to me.
Yup. I guess step one is upgrade to a 'new' version of hacking, step two is the line length an then it's just one rule at a time. It's a lot of churn but if you have time to do it I'll make time to review it |
I did a quick test and removing E123,E125,H803 didn't actually change anything, although I think E123 and E125 are actually invalid pep8, so I still suggest to leave them. We can also leave H302 for the time being. There is also some refactoring to do on the docstrings in all the modules, but we'll get there. |
First simple patch #99 |
As discussed in redhat-cip#84 we should enforce line length limit of 80 columns everywhere. All the changes in the code were already submitted in other patches, this patch enforces the change in the tests.
As discussed in redhat-cip#84 we should enforce line length limit of 80 columns everywhere. Some changes are needed in various modules to be able to apply the change, all changes are cosmetic and don't modify logic or features.
Considering the latest changes, I think this can be closed. |
Currently the allowed line length for tox tests is 160 characters, which is a bit too much according to standard PEP8 convention.
We should remove the
max-line-length
option fromtox.ini
and change the code accordingly.It's always possible to have special cases and exclude checks to favour readability, for example using
# noqa
The text was updated successfully, but these errors were encountered: