-
Notifications
You must be signed in to change notification settings - Fork 27
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
Resolve contradictory contributing guidelines for line length #240
Comments
I should also mention that I am happy to work on this issue if it is agreed upon that lines should be 79 characters or less. |
@rnjudge You are right, thanks for creating an issue! To be honest, we are using black in other tools (uses 88 characters by default) and I am thinking if it does not make sense to switch to black when we want to change a lot of lines. Black can do the reformating for us and we are quite satisfied with that since it saves us a lot of styling discussions. What do others think? @TomasTomecek @lslebodn @jpopelka @dhodovsk? @rnjudge Do you still want to work on it even if we switch to black? It will require:
|
no strong preference from my side |
Just to clarify, use black with line length being 79 max? I would strongly push for adhering to the PEP8 standards for line length but willing to work on this either way ;) |
We are using black without configuration elsewhere (it does not have many options for purpose) and it works fine. Yes, it can sometimes break PEP8, but
So to clarify: I would use black as is but if you strongly want to pick Thanks in advance! |
Black with default configuration +1 While looking at our pre-commit configs in other projects I was wondering why we use flake8 with |
Sounds good. I will continue to monitor this issue for a consensus. |
Se we discussed this and decided we want to keep the practice from our other repos, i.e.
Regarding black & flake8, I'd suggest using pre-commit as described here |
The Colin contributing guide states the following:
This is contradictory, however, as the PEP8 guidelines for line length state that all line lengths should be kept to a maximum of 79 characters. This is especially distracting when trying to look through the code using a PEP8-adhering editor as there are many lines longer than 79 characters that cause linting errors in these editors when trying to save a file.
The text was updated successfully, but these errors were encountered: