Skip to content

chore: drop comments from Project.toml files - #147

Merged
seabbs merged 1 commit into
mainfrom
chore/no-comments-in-project-toml
Aug 27, 2026
Merged

seabbs merged 1 commit into
mainfrom
chore/no-comments-in-project-toml

Conversation

@seabbs-bot

Copy link
Copy Markdown
Collaborator

Org policy: Project.toml carries no comments.

Pkg silently drops them the next time anything rewrites the file — Pkg.add, Pkg.compat!, a dependency bump — so a note there reads fine until the first routine edit and then vanishes without trace. The kit makes this argument to adopters itself, in its _project_toml_comment_gap diagnostic.

Comment removal only. No dependency, compat or [sources] entry is touched, and every file still parses as TOML (checked with tomllib).

This was opened by a bot. Please ping @seabbs for any questions.

Org policy: Project.toml carries no comments. Pkg silently drops them
the next time anything rewrites the file, so a note there reads fine
until the first Pkg.add and then vanishes without trace.

Some had already gone stale and now say the opposite of what is true.

Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
@github-actions

Copy link
Copy Markdown
Contributor

Try this Pull Request!

Option 1: Julia Package Manager

Open Julia and type:

import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/DistributionsInference.jl", rev="chore/no-comments-in-project-toml")
using DistributionsInference

Option 2: Local Checkout

If you have the repo locally:

git checkout chore/no-comments-in-project-toml
julia --project=. -e "using Pkg; Pkg.instantiate()"

@codecov

codecov Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
ad-enzyme-forward 18.21% <ø> (ø)
ad-enzyme-reverse 18.21% <ø> (ø)
ad-forwarddiff 14.86% <ø> (ø)
ad-mooncake-forward 14.86% <ø> (ø)
ad-mooncake-reverse 14.86% <ø> (ø)
ad-reversediff 14.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation preview is ready!

View the docs for this PR at: https://EpiAware.github.io/DistributionsInference.jl/previews/PR147/

This preview will be updated automatically when you push new commits.

@seabbs-review-bot seabbs-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR only strips comments from six Project.toml files; no version bounds or resolution behaviour change. Some deletions correctly remove history/issue-number narration the org standards ban, but others delete "why" comments that documented non-obvious compat constraints and cross-file couplings, with no equivalent explanation left anywhere in the repo.

Automated first pass by seabbs-review-bot (Claude sonnet), triggered by: first pass. Not a human review. Comment @seabbs-review-bot to ask for another pass: @seabbs any time, the author's agent once it has pushed changes. Add the no-review label to opt this PR out. Ping @seabbs with any questions.

Comment thread Project.toml
# `Distributions.ProductNamedTupleDistribution`, added in that release. An
# unbounded "0.25" lets `downgrade-compat` resolve an older Distributions
# that DynamicPPL/Bijectors then fail to precompile against.
Distributions = "0.25.117"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue This deleted the only explanation for why Distributions is floored at 0.25.117 (DynamicPPL's debug_utils.jl references Distributions.ProductNamedTupleDistribution, added in that release). That's exactly the kind of comment julia-standards.md rule 7 asks to keep: a constraint invisible in the code. It isn't documented anywhere else in the repo (checked NEWS.md and docs/). A future contributor loosening this bound during a routine compat bump now has nothing to warn them why it's pinned there. Restore a short version, e.g. # Floored at 0.25.117: DynamicPPL's debug_utils.jl needs Distributions.ProductNamedTupleDistribution, added in that release.

# matrix (lts/1/pre). Unpinned, the version floats per job, so `test (1)` and
# `pre-commit` reformat files that `test (lts)` left alone. Keep in step with
# the `.pre-commit-config.yaml` JuliaFormatter `rev` and the CI format-check.
JuliaFormatter = "=2.10.1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue The deleted comment explained that this pin must stay in step with .pre-commit-config.yaml's JuliaFormatter rev. That coupling still exists and is still referenced from the other side: .pre-commit-config.yaml lines 46-47 say "Keep rev in step with the pinned JuliaFormatter in the formatter test environment", pointing back at this file. With this comment gone the cross-reference is now one-sided, so an editor bumping this pin has no signal to also update the pre-commit hook. Keep a short pointer, e.g. # Pinned exactly; keep in step with .pre-commit-config.yaml's JuliaFormatter rev.

Comment thread docs/Project.toml
# `DimensionalData` at 0.28.3 while the `FlexiChains` these docs load needs
# >=0.29.24 (kit#283). Restore those deps, and `docs` as a workspace member,
# once that ceiling lifts.
[deps]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion This deleted both the "PACKAGE-OWNED — scaffold writes this once and never overwrites it" note and the DimensionalData/AlgebraOfGraphics ceiling explanation (kit#283) for why the plotting stack is absent from this env. Unlike the formatter and root Project.toml comments, this one also carried a live external tracking reference, so removing it is more defensible under rule 8, but the scaffold-ownership semantics (hand edits here survive template sync, unlike test/formatter/Project.toml which is machine-managed) aren't recorded anywhere else. Consider keeping at least the one-line ownership note.

@seabbs-review-bot seabbs-review-bot Bot added the llm-reviewed Reviewed by seabbs-review-bot label Aug 26, 2026
@seabbs
seabbs merged commit cacf3fd into main Aug 27, 2026
22 of 32 checks passed
@seabbs
seabbs deleted the chore/no-comments-in-project-toml branch August 27, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-reviewed Reviewed by seabbs-review-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants