Skip to content

ci: standardize linting, import hygiene, and CI workflows - #196

Merged
adrhill merged 7 commits into
mainfrom
ah/ci-cleanup
Jul 13, 2026
Merged

ci: standardize linting, import hygiene, and CI workflows#196
adrhill merged 7 commits into
mainfrom
ah/ci-cleanup

Conversation

@adrhill

@adrhill adrhill commented Jul 13, 2026

Copy link
Copy Markdown
Member
  • Move the Aqua.jl and JET.jl checks into a self-contained test/linting.jl (JET runs on Julia v1.12+ only).
  • Add ExplicitImports.jl import-hygiene checks and drop unused imports.
  • Add a package-scoped Aqua.test_ambiguities check alongside Aqua.test_all(…; ambiguities = false).
  • Fix a method ambiguity in AugmentationSelector surfaced by that check (narrow its call signature to AbstractMatrix).
  • Standardize the GitHub Actions workflows: pin actions to their latest majors, restrict the Julia matrix to 1 and lts, and drop the os/arch matrix (single ubuntu-latest runner).
  • Remove the unused .JuliaFormatter.toml (formatting is enforced by the Runic CI job) and add a pre-commit config (Runic, typos, whitespace/EOF hygiene).

🤖 Generated with Claude Code

…Formatter config

- Move the Aqua.jl and JET.jl checks from `test/runtests.jl` into a self-contained `test/linting.jl` (JET runs on Julia v1.12+ only).
- Remove the unused `.JuliaFormatter.toml`; formatting is enforced by the Runic CI job.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adrhill adrhill changed the title Standardize linting; drop stale JuliaFormatter config ci: move Aqua and JET checks into shared linting.jl, drop stale JuliaFormatter config Jul 13, 2026
adrhill and others added 6 commits July 13, 2026 21:27
`(s::AugmentationSelector)(out)` used an untyped argument, making it
ambiguous with XAIBase's `(::AbstractOutputSelector)(::AbstractVector)`
guard whenever the output is a vector. Specialize on `::AbstractMatrix`
to match the other concrete selectors (MaxActivationSelector,
IndexSelector) and preserve the missing-batch-dimension guard.

Surfaced by the new package-scoped Aqua.test_ambiguities check.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add `Aqua.test_ambiguities(<Module>)` alongside the existing
`Aqua.test_all(...; ambiguities = false)`. test_all's built-in check
broadens to [Module, Core, Base] and trips on dependency-owned
ambiguities we can't fix; the scoped call only reports ambiguities where
at least one conflicting method is owned by the package itself.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pin all GitHub Actions to their latest major moving tag: checkout@v7,
setup-julia@v3, cache@v3, codecov-action@v7 (julia-actions/*, TagBot and
runic-action stay @v1). The codecov bump is input-safe as every step
already uses the post-v4 `files:` schema.

Test only on Julia '1' and 'lts' on a single ubuntu-latest runner: drop
'pre'/'nightly'/pinned point releases and remove the os/arch matrix
dimensions and hardcoded arch inputs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adrhill adrhill changed the title ci: move Aqua and JET checks into shared linting.jl, drop stale JuliaFormatter config ci: standardize linting, import hygiene, and CI workflows Jul 13, 2026
@adrhill
adrhill merged commit 5cbb2de into main Jul 13, 2026
5 checks passed
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.

1 participant