-
Notifications
You must be signed in to change notification settings - Fork 57
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
Format code with JuliaFormatter
#256
Conversation
Also, add format checking workflows
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.
Before we format the code base, we have to agree on a code style. IMO we shouldn't rely on general defaults of JuliaFormatter but fix the style that's agreed on in a .JuliaFormatter.toml
file in the repo.
I tend to use blue style (as e.g. ChainRulesCore: https://github.com/JuliaDiff/ChainRulesCore.jl/blob/main/.JuliaFormatter.toml) but there are of course other common styles.
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.
Maybe add the blue style badge to the README? Otherwise it looks good to me 🙂
Co-authored-by: David Widmann <[email protected]>
This PR formats the code with
JuliaFormatter
and adds a couple of format checking workflows.