Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Some tooling is present as bash scripts in `bin/`.
A lot more is present in `rust-tooling/`,
which should be preferred for anything non-trivial.

There is also a [`justfile`](https://github.com/casey/just)
There is also a [`mise`](https://mise.jdx.dev/) configuration
with a couple useful commands to interact with the repo.
Feel free to extend it.

If you want to run CI tests locally, `just test` will get you quite far.
If you want to run CI tests locally, `mise run test` will get you quite far.

## Excluding tests and adding custom ones

Expand All @@ -41,7 +41,7 @@ Please familiarize yourself with the [Exercism documentation about practice exer

[Exercism documentation about practice exercises]: https://exercism.org/docs/building/tracks/practice-exercises

Run `just add-exercise` and you'll be prompted for the minimal
Run `mise run add-exercise` and you'll be prompted for the minimal
information required to generate the exercise stub for you.
After that, jump in the generated exercise and fill in any placeholders you find.
This includes most notably:
Expand Down Expand Up @@ -88,7 +88,7 @@ This includes their test suite and user-facing documentation.
Before proposing changes here,
check if they should be made in `problem-specifications` instead.

Run `just update-exercise` to update an exercise.
Run `mise run update-exercise` to update an exercise.
This outsources most work to `configlet sync --update`
and runs the test generator again.

Expand Down
30 changes: 0 additions & 30 deletions justfile

This file was deleted.

34 changes: 34 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[tasks.test]
description = "simulate CI locally (WIP)"
run = [
"mise run configlet lint",
"bin/lint_markdown.sh",
"shellcheck bin/*.sh",
"bin/check_exercises.sh",
"CLIPPY=true bin/check_exercises.sh",
"cd rust-tooling && cargo test",
"bin/format_exercises.sh ; git diff --exit-code",
]

[tasks.add-exercise]
depends = "symlink-problem-specifications"
run = "cd rust-tooling/generate; cargo run --quiet --release -- add"

[tasks.update-exercise]
depends = "symlink-problem-specifications"
run = "cd rust-tooling/generate; cargo run --quiet --release -- update"

[tasks.configlet]
depends = "fetch-configlet"
quiet = true
run = "bin/configlet"

[tasks.fetch-configlet]
hide = true
silent = true
run = "[ -f bin/configlet ] || bin/fetch-configlet"

[tasks.symlink-problem-specifications]
hide = true
silent = true
run = "[ -L problem-specifications ] || bin/symlink_problem_specifications.sh"
3 changes: 2 additions & 1 deletion rust-tooling/generate/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ fn update_exercise(args: UpdateArgs) -> Result<()> {
}

fn make_configlet_generate_what_it_can(slug: &str) -> Result<()> {
let status = std::process::Command::new("just")
let status = std::process::Command::new("mise")
.args([
"run",
"configlet",
"sync",
"--update",
Expand Down