Skip to content

Commit 5285a58

Browse files
authored
Switch from 'make' to 'just' (#652)
1 parent d8d8de8 commit 5285a58

File tree

7 files changed

+57
-57
lines changed

7 files changed

+57
-57
lines changed

.github/workflows/cron.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
python-version: '3.x'
1717

1818
- name: install tox
19-
run: python -m pip install 'tox'
19+
run: python -m pip install 'tox' 'rust-just'
2020

2121
- name: vendor-schemas
22-
run: make vendor-schemas
22+
run: just vendor-schemas
2323

2424
# this action seems to have significant usage, so it should be stable
2525
# can always re-implement with `git status --porcelain`, etc. if necessary

.pre-commit-hooks.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# this hook is autogenerated from a script
2222
# to modify this hook, update `src/check_jsonschema/catalog.py`
23-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
23+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
2424
- id: check-azure-pipelines
2525
name: Validate Azure Pipelines
2626
description: 'Validate Azure Pipelines config against the schema provided by Microsoft'
@@ -31,7 +31,7 @@
3131

3232
# this hook is autogenerated from a script
3333
# to modify this hook, update `src/check_jsonschema/catalog.py`
34-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
34+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
3535
- id: check-bamboo-spec
3636
name: Validate Bamboo Specs
3737
description: 'Validate Bamboo Specs against the schema provided by SchemaStore'
@@ -42,7 +42,7 @@
4242

4343
# this hook is autogenerated from a script
4444
# to modify this hook, update `src/check_jsonschema/catalog.py`
45-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
45+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
4646
- id: check-bitbucket-pipelines
4747
name: Validate Bitbucket Pipelines
4848
description: 'Validate Bitbucket Pipelines against the schema provided by SchemaStore'
@@ -53,7 +53,7 @@
5353

5454
# this hook is autogenerated from a script
5555
# to modify this hook, update `src/check_jsonschema/catalog.py`
56-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
56+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
5757
- id: check-buildkite
5858
name: Validate Buildkite Pipelines
5959
description: 'Validate Buildkite Pipelines against the schema provided by Buildkite'
@@ -70,7 +70,7 @@
7070

7171
# this hook is autogenerated from a script
7272
# to modify this hook, update `src/check_jsonschema/catalog.py`
73-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
73+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
7474
- id: check-circle-ci
7575
name: Validate CircleCI config
7676
description: 'Validate CircleCI config against the schema provided by SchemaStore'
@@ -80,7 +80,7 @@
8080

8181
# this hook is autogenerated from a script
8282
# to modify this hook, update `src/check_jsonschema/catalog.py`
83-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
83+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
8484
- id: check-citation-file-format
8585
name: Validate Citation File Format
8686
description: 'Validate Citation File Format'
@@ -90,7 +90,7 @@
9090

9191
# this hook is autogenerated from a script
9292
# to modify this hook, update `src/check_jsonschema/catalog.py`
93-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
93+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
9494
- id: check-cloudbuild
9595
name: Validate Google Cloud Build config
9696
description: 'Validate Google Cloud Build config against the schema provided by SchemaStore'
@@ -101,7 +101,7 @@
101101

102102
# this hook is autogenerated from a script
103103
# to modify this hook, update `src/check_jsonschema/catalog.py`
104-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
104+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
105105
- id: check-codecov
106106
name: Validate Codecov config
107107
description: 'Validate Codecov config against the schema provided by SchemaStore'
@@ -115,7 +115,7 @@
115115

116116
# this hook is autogenerated from a script
117117
# to modify this hook, update `src/check_jsonschema/catalog.py`
118-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
118+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
119119
- id: check-compose-spec
120120
name: Validate Docker Compose files
121121
description: 'Validate Docker Compose files against the schema provided by SchemaStore'
@@ -130,7 +130,7 @@
130130

131131
# this hook is autogenerated from a script
132132
# to modify this hook, update `src/check_jsonschema/catalog.py`
133-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
133+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
134134
- id: check-dependabot
135135
name: Validate Dependabot Config (v2)
136136
description: 'Validate Dependabot Config (v2) against the schema provided by SchemaStore'
@@ -141,7 +141,7 @@
141141

142142
# this hook is autogenerated from a script
143143
# to modify this hook, update `src/check_jsonschema/catalog.py`
144-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
144+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
145145
- id: check-drone-ci
146146
name: Validate Drone-CI Config
147147
description: 'Validate Drone-CI Config against the schema provided by SchemaStore'
@@ -152,7 +152,7 @@
152152

153153
# this hook is autogenerated from a script
154154
# to modify this hook, update `src/check_jsonschema/catalog.py`
155-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
155+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
156156
- id: check-github-actions
157157
name: Validate GitHub Actions
158158
description: 'Validate GitHub Actions against the schema provided by SchemaStore'
@@ -167,7 +167,7 @@
167167

168168
# this hook is autogenerated from a script
169169
# to modify this hook, update `src/check_jsonschema/catalog.py`
170-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
170+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
171171
- id: check-github-discussion
172172
name: Validate GitHub discussion
173173
description: 'Validate GitHub discussion against the schema provided by SchemaStore'
@@ -181,7 +181,7 @@
181181

182182
# this hook is autogenerated from a script
183183
# to modify this hook, update `src/check_jsonschema/catalog.py`
184-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
184+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
185185
- id: check-github-issue-config
186186
name: Validate GitHub issue config
187187
description: 'Validate GitHub issue config against the schema provided by SchemaStore'
@@ -195,7 +195,7 @@
195195

196196
# this hook is autogenerated from a script
197197
# to modify this hook, update `src/check_jsonschema/catalog.py`
198-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
198+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
199199
- id: check-github-issue-forms
200200
name: Validate GitHub issue forms
201201
description: 'Validate GitHub issue forms against the schema provided by SchemaStore'
@@ -209,7 +209,7 @@
209209

210210
# this hook is autogenerated from a script
211211
# to modify this hook, update `src/check_jsonschema/catalog.py`
212-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
212+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
213213
- id: check-github-workflows
214214
name: Validate GitHub Workflows
215215
description: 'Validate GitHub Workflows against the schema provided by SchemaStore'
@@ -220,7 +220,7 @@
220220

221221
# this hook is autogenerated from a script
222222
# to modify this hook, update `src/check_jsonschema/catalog.py`
223-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
223+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
224224
- id: check-gitlab-ci
225225
name: Validate GitLab CI config
226226
description: 'Validate GitLab CI config against the schema provided by SchemaStore'
@@ -231,7 +231,7 @@
231231

232232
# this hook is autogenerated from a script
233233
# to modify this hook, update `src/check_jsonschema/catalog.py`
234-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
234+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
235235
- id: check-meltano
236236
name: Validate Meltano Config
237237
description: 'Validate Meltano config against the schema provided by Meltano'
@@ -247,7 +247,7 @@
247247

248248
# this hook is autogenerated from a script
249249
# to modify this hook, update `src/check_jsonschema/catalog.py`
250-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
250+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
251251
- id: check-mergify
252252
name: Validate Mergify config
253253
description: 'Validate Mergify config against the schema provided by SchemaStore'
@@ -263,7 +263,7 @@
263263

264264
# this hook is autogenerated from a script
265265
# to modify this hook, update `src/check_jsonschema/catalog.py`
266-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
266+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
267267
- id: check-readthedocs
268268
name: Validate ReadTheDocs Config
269269
description: 'Validate ReadTheDocs config against the schema provided by ReadTheDocs'
@@ -274,7 +274,7 @@
274274

275275
# this hook is autogenerated from a script
276276
# to modify this hook, update `src/check_jsonschema/catalog.py`
277-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
277+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
278278
- id: check-renovate
279279
name: Validate Renovate Config
280280
description: 'Validate Renovate config against the schema provided by Renovate (does not support renovate config in package.json)'
@@ -290,7 +290,7 @@
290290
291291
# this hook is autogenerated from a script
292292
# to modify this hook, update `src/check_jsonschema/catalog.py`
293-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
293+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
294294
- id: check-snapcraft
295295
name: Validate snapcraft files
296296
description: 'Validate snapcraft files against the schema provided by Canonical'
@@ -301,7 +301,7 @@
301301

302302
# this hook is autogenerated from a script
303303
# to modify this hook, update `src/check_jsonschema/catalog.py`
304-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
304+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
305305
- id: check-taskfile
306306
name: Validate Taskfile Config
307307
description: 'Validate Taskfile config against the schema provided by Task'
@@ -318,7 +318,7 @@
318318

319319
# this hook is autogenerated from a script
320320
# to modify this hook, update `src/check_jsonschema/catalog.py`
321-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
321+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
322322
- id: check-travis
323323
name: Validate Travis Config
324324
description: 'Validate Travis Config against the schema provided by SchemaStore'
@@ -329,7 +329,7 @@
329329

330330
# this hook is autogenerated from a script
331331
# to modify this hook, update `src/check_jsonschema/catalog.py`
332-
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
332+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
333333
- id: check-woodpecker-ci
334334
name: Validate Woodpecker Config
335335
description: 'Validate Woodpecker Config against the schema provided by SchemaStore'

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ These files are automatically picked up by the testsuite and checked.
4444
Hooks are defined in `src/check_jsonschema/catalog.py`, and rendered to
4545
`.pre-commit-hooks.yaml` with the generator script. It can be run with
4646

47-
make generate-hooks
47+
just generate-hooks
4848

4949
Schemas are pulled down based on this same config. If you want to update the
5050
vendored schema copies, run
5151

52-
make vendor-schemas
52+
just vendor-schemas
5353

5454
## Documentation
5555

Makefile

Lines changed: 0 additions & 26 deletions
This file was deleted.

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
- Bump the version with `./scripts/bump-version.py NEW_VERSION`
44
- Add, commit with `git commit -m 'Bump version for release'`, and push
5-
- Create a release tag, which will auto-publish to testpypi (`make release`)
5+
- Create a release tag, which will auto-publish to testpypi (`just tag-release`)
66
- Create a GitHub release, which will auto-publish to pypi (web UI)

justfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version := `uvx mddj read version`
2+
push_remote := `git rev-parse --abbrev-ref @{push} | cut -d '/' -f1`
3+
4+
lint:
5+
pre-commit run -a
6+
tox run -e mypy
7+
8+
test:
9+
tox p
10+
11+
vendor-schemas:
12+
tox run -e vendor-schemas
13+
14+
generate-hooks:
15+
tox run -e generate-hooks-config
16+
17+
tag-release:
18+
git tag -s "{{version}}" -m "v{{version}}"
19+
git push {{push_remote}} refs/tags/{{version}}
20+
21+
collated-test-report: test
22+
python ./scripts/aggregate-pytest-reports.py .tox/*/pytest.xml
23+
24+
clean:
25+
rm -rf dist build *.egg-info .tox .coverage.*
26+
find . -type d -name '__pycache__' -exec rm -r {} +

scripts/generate-hooks-config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def update_hook_config(new_config: str) -> None:
4444
def generate_hook_lines(config) -> t.Iterator[str]:
4545
yield "# this hook is autogenerated from a script"
4646
yield "# to modify this hook, update `src/check_jsonschema/catalog.py`"
47-
yield "# and run `make generate-hooks` or `tox run -e generate-hooks-config`"
47+
yield "# and run `just generate-hooks` or `tox run -e generate-hooks-config`"
4848
yield f"- id: {config['id']}"
4949
yield f" name: {config['name']}"
5050
yield f" description: '{config['description']}'"

0 commit comments

Comments
 (0)