Commit 1803e33
authored
feat: fail CI if pyproject.toml still has placeholder strings (#59)
* feat: fail CI if pyproject.toml still has placeholder strings
Adds a `placeholders` tox env that greps `pyproject.toml` for the
template's placeholder strings (`placeholder-my-plugin`,
`Your Name placeholder`, `placeholder@placeholder.com`) and fails if
any are present.
The check is wired into `test.yml` as a step gated by
`github.repository != 'mloda-ai/mloda-plugin-template'` (and pinned
to the 3.10 matrix leg so it runs once per workflow). This keeps the
template repo's own CI green while scaffolded plugins fail until
they update `pyproject.toml`.
README "Setup Your Plugin" documents how to run the check locally and
the template-repo exemption. `docs/github-repository-settings.md`
notes that the check rides on the 3.10 matrix leg.
Closes #47
* feat: broaden placeholder check to cover all five pyproject fields
The check now flags the description and the setuptools/pytest
placeholder entries in addition to name and authors, so it matches
every field the README setup walks the user through. Patterns use
POSIX character classes ([.], [*]) instead of backslash escapes for
portability across GNU and BSD grep.1 parent b146514 commit 1803e33
4 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
0 commit comments