Skip to content
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 JuliaFormatter #108

Merged
merged 3 commits into from
Sep 22, 2023
Merged

Add JuliaFormatter #108

merged 3 commits into from
Sep 22, 2023

Conversation

devmotion
Copy link
Member

I'm a big fan of JuliaFormatter, in particular when working together with others. It makes it just easier to focus on the content instead of having to deal with formatting preferences and changes.

In this PR I set up JuliaFormatter and a Github action that makes formatting suggestions in PRs (used e.g., in ChainRules, JuliaGaussianProcesses, some Turing packages (IIRC), and some of my packages). I went for Blue style because I use that often but I'm also fine with other styles (just not a fan of the long lines and strange indentation in the SciML format 😛).

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Patch coverage: 84.37% and project coverage change: +0.12% 🎉

Comparison is base (9e7e07b) 82.82% compared to head (4677ce1) 82.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
+ Coverage   82.82%   82.94%   +0.12%     
==========================================
  Files           8        8              
  Lines         425      428       +3     
==========================================
+ Hits          352      355       +3     
  Misses         73       73              
Files Changed Coverage Δ
src/backends.jl 83.33% <ø> (ø)
src/AbstractDifferentiation.jl 78.40% <83.87%> (+0.21%) ⬆️
ext/AbstractDifferentiationChainRulesCoreExt.jl 100.00% <100.00%> (ø)
ext/AbstractDifferentiationFiniteDifferencesExt.jl 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@devmotion devmotion requested a review from gdalle September 22, 2023 15:20
Copy link
Member

@gdalle gdalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've wanted to do it myself for a while ;)

@devmotion devmotion merged commit df50a8d into master Sep 22, 2023
@devmotion devmotion deleted the dw/format branch September 22, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants