-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Auto-formatting with black and isort #97
Conversation
Looking at the changes I must say I quite like black's formatting. There are some parts I do not like (much like you discussed in #17), but overall I prefer it much more over not having a fixed standard across the code. I also like how it changes I give this a green light, but would like someone else to give in a review, given how much this will affect the whole codebase in the future. |
Yep, same feeling. But it is nice not to worry or waste time about formatting.
Yep, It would be nice if all maintainers agree for that one. |
A pre-commit hook that auto-formats would be quite useful. |
not sure about that one... will people also have it when they clone the repo? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I do like having commit hooks to run all the cheap checks so I don't have to remember to do it manually (or wait 30m to see the CI fails), but am also fine with writing one myself. We could add an entry in the Makefile that just runs all the other quick entries? Something like:
|
LGTM. Honestly I might just add black and isort to my workspace in general. I didn't realise they existed. The auto formating looks really good. def foo(
arg1,
arg2
):
# applies foo to args
return None But that probably because I'm not used to it (I keep trying to look for the |
Yep, that's part of the things I'm not completely ok with it, but that's the compromise (there is no with black ^^"). |
Can someone tell me why Github CI fails? |
Description
Motivation and Context
Related to #17
Types of changes
Checklist:
make lint
make pytest
andmake type
both pass.