Commit cb11881
Issue #110: Restrict black pin to py>=3.9 and run linting once
Follow-up to the previous commit. Pinning black==25.1.0 unconditionally broke
the Python 3.8 matrix job at install time:
ERROR: Could not find a version that satisfies the requirement
black==25.1.0; extra == "dev" ... No matching distribution found
black 25.1.0 requires Python >=3.9. Fail-fast then cancelled the other 12 jobs,
which is why they showed as failures despite only one real error.
Two changes:
1. Marker the pin as `black==25.1.0; python_version >= '3.9'` so the 3.8 job
installs cleanly without black.
2. Gate the black and flake8 steps on ubuntu-latest/3.11. Linting is
version-independent, so running it on all 13 matrix combinations wastes CI
and, more importantly, made the formatter a function of the matrix entry.
This follows the convention already used by the coverage-badge steps in
this workflow.
Note for #113: the flake8 step passes --exit-zero, so it cannot fail and has
never gated anything. Left as-is here because removing it would surface a
large backlog and block this P0; recorded on #113 instead.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012gTBDPK16HUZ3kHQ2QyjuU1 parent 3cd502e commit cb11881
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments