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

[AUTO] JuliaFormatter.jl run #964

Merged
merged 2 commits into from
Jul 28, 2024
Merged

[AUTO] JuliaFormatter.jl run #964

merged 2 commits into from
Jul 28, 2024

Conversation

github-actions[bot]
Copy link
Contributor

Automated changes by create-pull-request GitHub action

src/tolerances.jl Outdated Show resolved Hide resolved
Co-authored-by: Joshua Lampert <[email protected]>
@JoshuaLampert
Copy link
Member

Out of curiosity: Why did you opt for these automated format PRs instead of having the formatter as a separate CI run? This way you could guarantee that no unformatted source gets merged and you wouldn't need the auto-PRs. If you don't want the creator of a PR have to run the formatter locally, there exists https://github.com/julia-actions/julia-format, which makes suggestions to the PR based on the formatter.

Copy link

codecov bot commented Jul 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.05%. Comparing base (2dfd258) to head (896b60b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #964   +/-   ##
=======================================
  Coverage   89.05%   89.05%           
=======================================
  Files         178      178           
  Lines        5473     5473           
=======================================
  Hits         4874     4874           
  Misses        599      599           

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

@juliohm
Copy link
Member

juliohm commented Jul 28, 2024

We didn't know these format suggestions could be applied directly to PRs by a bot. If you can submit a PR with this alternative workflow, we can review and merge.

Thanks for all these suggestions of improvement.

@juliohm juliohm merged commit 5adb2d4 into master Jul 28, 2024
9 checks passed
@juliohm juliohm deleted the auto-juliaformatter-pr branch July 28, 2024 20:53
@JoshuaLampert
Copy link
Member

Ok, I can try a PR, but this is not number one on my list, so give me some time :)

@JoshuaLampert
Copy link
Member

Ok, I can try a PR, but this is not number one on my list, so give me some time :)

I just had a look at this and I want to note that the clickable suggestions only work for PRs not from a fork. For PRs from a fork, the git diffs are still shown in the PR as a warning, but cannot be applied directly, cf. JuliaDiff/ChainRulesCore.jl#489. See https://github.com/Astroshaper/AsteroidThermoPhysicalModels.jl/pull/107/files for an example of how this would look like for PRs from a fork. This means that for forks, one would still need to run the formatter locally.
Do you still prefer this option, @juliohm?

@juliohm
Copy link
Member

juliohm commented Jul 29, 2024 via email

@JoshuaLampert
Copy link
Member

I created #965.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants