-
Notifications
You must be signed in to change notification settings - Fork 18
/
.mise.toml
28 lines (26 loc) · 1.19 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
[tools]
python = { version = "3.12", virtualenv = ".venv" }
markdownlint-cli2 = "latest"
pdm = "latest"
julia = "latest"
[plugins]
pdm = "https://github.com/1oglop1/asdf-pdm"
markdownlint-cli2 = "https://github.com/paulo-ferraz-oliveira/asdf-markdownlint-cli2"
julia = "https://github.com/rkyleg/asdf-julia.git"
[tasks]
lint = { depends = [
"ruff_check_lint",
"ruff_format_lint",
"markdownlint_lint",
], description = "Run all the linter tools", env = { MISE_JOBS = "1" } }
ruff_check_lint = { description = "Run the ruff linter", run = "ruff check ." }
ruff_format_lint = { run = "ruff format --check .", description = "Run the ruff formatter in check mode" }
markdownlint_lint = { run = "markdownlint-cli2", description = "Run markdownlint" }
ruff_check_format = { run = "ruff check --fix .", description = "Run the ruff linter in fix mode" }
ruff_format_format = { run = "ruff format .", description = "Run the ruff formatter" }
markdownlint_format = { run = "markdownlint-cli2 --fix", description = "Run markdownlint in fix mode" }
format = { depends = [
"ruff_check_format",
"ruff_format_format",
"markdownlint_format",
], description = "Run all the formatting tools", env = { MISE_JOBS = "1" } }