Commit 673a3a0
CI - NEW FEATURE - Add a pre-commit formatting workflow, disabled for now
Adds a Format and Hygiene workflow that runs the repository's own pre-commit
suite (JuliaFormatter plus the file-hygiene hooks) so contributors who have not
run `pre-commit install` are still caught. It is wired to workflow_dispatch
only: the repository has pre-existing formatting drift that must be cleaned up
first, which is out of scope here. Running it manually from the Actions tab
shows the current damage; uncommenting the pull_request trigger enables it as
a gate.
The julia-formatter hook is `language: system`, so it shells out to whatever
JuliaFormatter is in the default depot environment rather than the one implied
by the pinned hook revision. The workflow therefore installs JuliaFormatter
v1.0.62 explicitly, matching the rev in .pre-commit-config.yaml, so CI and
local runs agree.
Also disables coverage instrumentation in the test job. julia-runtest enables
it by default, but nothing consumes the .cov files: they are gitignored and
never uploaded. Instrumenting compute-heavy numerical code for output that is
discarded is pure cost.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019tFBCa5iBXyb7xp8LxqBJx1 parent 0c8e4e4 commit 673a3a0
2 files changed
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
0 commit comments