-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.mise.toml
75 lines (60 loc) · 2.06 KB
/
.mise.toml
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
66
67
68
69
70
71
72
73
74
75
[tools]
bun = "latest"
cargo-binstall = "latest"
"cargo:taplo-cli" = "latest"
julia = "latest"
node = "22"
"npm:markdownlint-cli2" = "latest"
python = "3.12"
uv = "latest"
watchexec = "latest"
[env]
_.python.venv = { path = ".venv", create = true }
[alias]
julia = "asdf:rkyleg/asdf-julia"
[settings]
cargo = { binstall = true }
npm = { bun = true }
python = { uv_venv_auto = true }
[tasks.build_book]
description = "Build the book"
outputs = ["_build/html/**/*.html"]
run = "uv run jb build -W --nitpick -v ."
sources = ["time-since-periapsis-and-keplers-equation/*.md"]
[tasks.format]
depends = ["markdownlint_format", "ruff_check_format", "ruff_format_format"]
description = "Run all the formatting tools"
env = { MISE_JOBS = "1" }
[tasks.julia]
depends = ["julia_install"]
description = "Upgrade and install Julia dependencies"
env = { MISE_JOBS = "1" }
[tasks.julia_install]
depends = ["julia_upgrade"]
description = "Install Julia dependencies"
run = "julia --project=. -e 'using Pkg; Pkg.instantiate()'"
[tasks.julia_upgrade]
description = "Upgrade Julia dependencies"
run = "julia --project=. -e 'using Pkg; Pkg.update()'"
[tasks.lint]
depends = ["markdownlint_lint", "ruff_check_lint", "ruff_format_lint"]
description = "Run all the linter tools"
env = { MISE_JOBS = "1" }
[tasks.markdownlint_format]
description = "Run markdownlint in fix mode"
run = "markdownlint-cli2 --fix"
[tasks.markdownlint_lint]
description = "Run markdownlint"
run = "markdownlint-cli2"
[tasks.ruff_check_format]
description = "Run the ruff linter in fix mode"
run = "ruff check --fix ."
[tasks.ruff_check_lint]
description = "Run the ruff linter"
run = "ruff check ."
[tasks.ruff_format_format]
description = "Run the ruff formatter"
run = "ruff format ."
[tasks.ruff_format_lint]
description = "Run the ruff formatter in check mode"
run = "ruff format --check ."