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

More autoformatting #2359

Merged
merged 4 commits into from
Oct 4, 2024
Merged

More autoformatting #2359

merged 4 commits into from
Oct 4, 2024

Conversation

mhauru
Copy link
Member

@mhauru mhauru commented Oct 4, 2024

Back when we introduced autoformatting in CI, we had a few big PRs in the works that would have caused horrendous merge conflicts. Hence some exceptions were added, where a few files that were being heavily worked on were marked to be ignored by JuliaFormatter. Several of those PRs have now been merged, so it could be time to start applying formatting to those files too.

This PR does exactly three things:

  1. Updates .JuliaFormatter.toml
  2. Runs JuliaFormatter
  3. Removes trailing whitespace

If you trust JuliaFormatter, you only really need to review the changes in .JuliaFormatter.toml.

I still had to leave a couple of exceptions in for files that are being removed by #2328 or heavily edited by #1887. Some smaller merge conflicts I considered acceptable.

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 86.67%. Comparing base (b1122c1) to head (3f4d55f).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/mcmc/Inference.jl 75.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2359      +/-   ##
==========================================
- Coverage   86.83%   86.67%   -0.16%     
==========================================
  Files          24       24              
  Lines        1595     1599       +4     
==========================================
+ Hits         1385     1386       +1     
- Misses        210      213       +3     

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

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11178383782

Details

  • 21 of 27 (77.78%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 86.951%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/mcmc/Inference.jl 21 27 77.78%
Files with Coverage Reduction New Missed Lines %
src/mcmc/Inference.jl 2 87.35%
Totals Coverage Status
Change from base Build 11150579066: -0.1%
Covered Lines: 1386
Relevant Lines: 1594

💛 - Coveralls

Copy link
Member

@torfjelde torfjelde left a comment

Choose a reason for hiding this comment

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

I trust JuliaFormatter.jl 🙏

@penelopeysm
Copy link
Member

If you trust JuliaFormatter, you only really need to review the changes in .JuliaFormatter.toml.

This is exactly what somebody trying to introduce a subtle exploit would say 🤔

@mhauru
Copy link
Member Author

mhauru commented Oct 4, 2024

This is exactly what somebody trying to introduce a subtle exploit would say 🤔

My statement was indeed incomplete: If you trust JuliaFormatter and me, you only really need to review the changes in .JuliaFormatter.toml.

@mhauru mhauru merged commit 40a0d84 into master Oct 4, 2024
58 of 60 checks passed
@mhauru mhauru deleted the mhauru/more-autoformatting branch October 4, 2024 13:33
penelopeysm pushed a commit that referenced this pull request Oct 7, 2024
* Bring more files into autoformatting fold

* Run JuliaFormatter

* Remove trailing whitespace

* Update comment in .JuliaFormatter.toml
yebai pushed a commit that referenced this pull request Oct 23, 2024
* CompatHelper: bump compat for DynamicPPL to 0.29, (keep existing compat) (#2339)

Co-authored-by: CompatHelper Julia <[email protected]>

* CompatHelper: bump compat for DynamicPPL to 0.29 for package test, (keep existing compat) (#2340)

Co-authored-by: CompatHelper Julia <[email protected]>

* Replace vectorize(d, r) -> DynamicPPL.tovec(r)

vectorize was removed in DynamicPPL 0.29.0

* Require Julia >= 1.9

* Add Julia 1.9 tests back

* Fix essential/ad tests

* Fix reconstruct calls in MH

* Update src/mcmc/mh.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Require Julia 1.10

* Change 1 -> I in MvNormal()

setting a real number as σ is deprecated

* Simplify tests as we no longer support Julia <1.8

* Simplify `set_namedtuple!`

* Remove conditional loading/exporting of Tapir

* Tapir -> Mooncake

* Update src/essential/Essential.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Remove Requires from Project.toml

* Bump minor version instead

* Restrict ADTypes to 1.9.0 for AutoMooncake()

* Re-enable Mooncake tests in mcmc/abstractmcmc

* Update the currently buggy and incorrect tilde overloads in `mh.jl` (#2360)

* More autoformatting (#2359)

* Bring more files into autoformatting fold

* Run JuliaFormatter

* Remove trailing whitespace

* Update comment in .JuliaFormatter.toml

* Fix bad merge

* Restrict Mooncake to >= 0.4.9

* Add MH test for LKJCholesky

* Remove Tracker

* Format imports

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Add AD imports to Optimisation test

* Bump Mooncake compat in tests

* Bump Libtask version

* Get Optimization tests to pass CI

* Update API docs

* Write a changelog entry

* Update docs/src/api.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: CompatHelper Julia <[email protected]>
Co-authored-by: Tor Erlend Fjelde <[email protected]>
Co-authored-by: Markus Hauru <[email protected]>
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.

4 participants