-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add an .editorconfig #18
Comments
Never used |
|
It's not that we absolutely have to use black. Try it out and let's discuss what works for us. However I'd prefer not to touch my text editor as I am using it for other projects as well. It would also allow us to get rid of backslashes at the end of long lines, which is one thing I prefer not to have in my code. I'm open to (almost) any line length, to any (pep8ish) code format, but please no backslashes. Have a look at |
I think it is fine to make a commit to run black on the whole code so it is uniformized. Back in my days there wasn't much option so it was formatted by hand. I don't mind you ruining my hand-crafted work at all, don't worry!! 😁 |
I should have say "artisanal formatting" |
(That doesn't mean you shouldn't use the pre-commit hook. I understand it's important for some people) |
I mean, you need both |
There's a CI check for pre-commit, relatively straightforward: And there's the configuration for pre-commit, that has quite many points we could/should discuss if we want to include them: So it is not necessary to have As @cecton says, there must be one commit, that changes the whole artisanal formatting and breaks all And such a commit can appear in the future again. When the Python versions migration brings new syntax elements (such as Python 2→3 migration, |
I've never used pre-commit. Could you elaborate on why you hate it? |
I prefer to commit often and without spending time on commit messages. So usually my commit history is full of "WIP". It looks dirty at first but at the end I just squash merge the whole PR and write a beautiful message. So on the main branch it always look perfect. Pushing often allows me to see the result of the CI sooner and get review feedbacks faster to. But in OSS unfortunately you often wait very long before getting an answer... |
Thank you. |
I don't know if it is possible but it would be nice to have a GitHub Actions enforcing it on the PR so it will give less work to the maintainers.
The text was updated successfully, but these errors were encountered: