JuliaDiff / AbstractDifferentiation.jl

An abstract interface for automatic differentiation.
https://juliadiff.org/AbstractDifferentiation.jl/
MIT License
135 stars 18 forks source link

Add JuliaFormatter #108

Closed devmotion closed 11 months ago

devmotion commented 11 months ago

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[bot] commented 11 months ago

Codecov Report

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

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

Additional details and impacted files ```diff @@ 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](https://app.codecov.io/gh/JuliaDiff/AbstractDifferentiation.jl/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaDiff) | Coverage Δ | | |---|---|---| | [src/backends.jl](https://app.codecov.io/gh/JuliaDiff/AbstractDifferentiation.jl/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaDiff#diff-c3JjL2JhY2tlbmRzLmps) | `83.33% <ø> (ø)` | | | [src/AbstractDifferentiation.jl](https://app.codecov.io/gh/JuliaDiff/AbstractDifferentiation.jl/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaDiff#diff-c3JjL0Fic3RyYWN0RGlmZmVyZW50aWF0aW9uLmps) | `78.40% <83.87%> (+0.21%)` | :arrow_up: | | [ext/AbstractDifferentiationChainRulesCoreExt.jl](https://app.codecov.io/gh/JuliaDiff/AbstractDifferentiation.jl/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaDiff#diff-ZXh0L0Fic3RyYWN0RGlmZmVyZW50aWF0aW9uQ2hhaW5SdWxlc0NvcmVFeHQuamw=) | `100.00% <100.00%> (ø)` | | | [ext/AbstractDifferentiationFiniteDifferencesExt.jl](https://app.codecov.io/gh/JuliaDiff/AbstractDifferentiation.jl/pull/108?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=JuliaDiff#diff-ZXh0L0Fic3RyYWN0RGlmZmVyZW50aWF0aW9uRmluaXRlRGlmZmVyZW5jZXNFeHQuamw=) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.