Add jet and add JuliaFormatter github action#71
Merged
rsenne merged 4 commits intoJoseKling:mainfrom Dec 19, 2025
Merged
Conversation
Introduces two GitHub Actions workflows for code formatting: one for PRs and one for scheduled/main branch runs. Updates test dependencies by replacing JuliaFormatter with JET, and modifies test code to use JET for code linting instead of formatting checks.
Implements Base.length for MultivariatePoissonProcess to return the number of marks. Updates logdensityof to require History type, optimizes rate vector allocation in inhomogeneous Poisson fit, and adjusts JET test configuration in runtests.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR modernizes the CI/CD infrastructure by replacing manual JuliaFormatter checks with automated GitHub Actions workflows and switching from JuliaFormatter to JET for code linting in tests. Additionally, it includes several targeted code quality improvements to enhance type safety, performance, and API completeness.
- Added two GitHub Actions workflows for automated code formatting: one for scheduled/push-triggered formatting PRs, and another for PR-based format suggestions
- Replaced JuliaFormatter with JET for static code analysis in the test suite
- Enhanced type safety, memory allocation efficiency, and API completeness in the core library
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/Format.yml |
New workflow to automatically format code and create PRs on schedule or push to main |
.github/workflows/Format-PR.yml |
New workflow to suggest formatting changes on pull requests |
test/Project.toml |
Replaced JuliaFormatter dependency with JET for code linting |
test/runtests.jl |
Updated test to use JET.test_package instead of format check, with Julia 1.11+ version guard |
src/abstract_point_process.jl |
Added explicit History type annotation to logdensityof method for improved type safety |
src/poisson/inhomogeneous/fit.jl |
Optimized memory allocation by using undef instead of zeros for rates vector |
src/poisson/poisson_process.jl |
Added Base.length method for MultivariatePoissonProcess to return dimension count |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
JoseKling
approved these changes
Dec 19, 2025
Owner
JoseKling
left a comment
There was a problem hiding this comment.
Cool. Looks good.
Thanks for all the work!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #70.
CI automation:
.github/workflows/Format-PR.ymlto suggest code formatting changes on pull requests usingjulia-actions/julia-format..github/workflows/Format.ymlto automatically runJuliaFormatteron a schedule or push, and create formatting pull requests usingpeter-evans/create-pull-request.Code quality improvements:
DensityInterface.logdensityofby specifying thathis aHistory, enhancing type safety.rateswithVector{R}(undef, n_bins)instead ofzeros, improving performance.Base.lengthmethod forMultivariatePoissonProcessto return the number of marks (dimensions), increasing API completeness.Test suite updates:
JuliaFormatterwithJETfor code linting intest/Project.tomlandtest/runtests.jl, and updated the corresponding testset from "Formatting" to "Code Linting". [1] [2] [3]