Contributing to AstroNbodySim.jl
Thanks for your interest in making this package better! Bug reports, feature requests, documentation fixes, and pull requests are all welcome.
Issues
Before opening a new issue please check whether the problem already exists among:
- These docs (
docs/src/…) and any inline error messages. - The source-level docstrings (use
help?>in the Julia REPL). - The change log / release notes.
- The existing open and closed issue tracker on GitHub.
When filing a bug, please provide:
- A minimal, fully reproducible example (MWE).
- Your Julia version (
versioninfo()in the REPL) and the AstroNbodySim.jl commit / version (]status). - The full error output (stacktrace, including any
@infoor@warnlines emitted by the package) — copy-paste as text, not a screenshot. - If the bug is GPU-related, the
nvidia-smidriver version and the CUDA toolkit version.
For feature requests, describe:
- The use case (a small program snippet that would use the feature if it existed).
- The desired API surface (function signature, struct fields).
- Any links to papers, prior implementations, or related projects.
Pull requests
Every PR should ship with:
- A short, imperative summary line (
"Fix syncflag inversion in check_sync_point_local"). - A test (
test/) demonstrating the bug, or showing the new behaviour. - A documentation change:
- New public symbols →
@docsblock + atutorial/…ormanual/…page if the change is user-visible. - Internal refactors → note in the source comment, no doc change.
- New public symbols →
- For complex algorithmic changes, a brief comment near the implementation explaining the method (and a paper reference if applicable).
Before pushing, please run the local test suite to confirm nothing regressed:
]testor, from the project root:
julia --project=. -e 'using Pkg; Pkg.test()'Coding conventions
- Follow Julia's style guide.
- Prefer multiple
usingstatements over giant imports. - Use
Base.@kwdef-style keyword structs for configuration objects. - Document every public function with a
# Brief title-style docstring and, where helpful, a usage example in $jldoctest$ format. - Compatibility: aim for the oldest Julia release still listed in
Project.toml's[compat]— currently1.12.
Release process
- Update
Project.tomlversion. - Update
CHANGELOG.md. - Tag
vMAJOR.MINOR.PATCHand push. The CI workflow creates the Zenodo record automatically.