-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathroot.mise.toml
More file actions
121 lines (102 loc) · 2.59 KB
/
root.mise.toml
File metadata and controls
121 lines (102 loc) · 2.59 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
["root:prepare"]
hide = true
run = "true"
["root:fix:markdownlint-readme"]
hide = true
sources = ["README.md"]
outputs = { auto = true }
run = "npx markdownlint-cli2 --fix README.md"
["root:fix"]
description = "Fix the root"
depends = ["root:fix:*"]
run = "true"
["root:install:pyproject"]
hide = true
sources = ["pyproject.toml", "gen/**/pyproject.toml", "src/**/pyproject.toml", "itests/pyproject.toml"]
outputs = { auto = true }
run = "uv sync --all-packages --active"
["root:install:pnpm"]
hide = true
sources = ["package.json", "gen/**/package.json", "src/**/package.json"]
outputs = { auto = true }
run = "pnpm install"
["root:install:docker"]
hide = true
sources = ["Dockfile"]
outputs = { auto = true }
run = "xargs docker pull < Dockfile"
["root:install:brew"]
hide = true
sources = ["Brewfile"]
outputs = { auto = true }
run = '''#!/usr/bin/env bash
if [[ "$(uname)" != "Darwin" ]]; then
exit 0
fi
brew bundle install
'''
["root:install:gemfile"]
hide = true
sources = ["Gemfile", "Gemfile.lock"]
outputs = { auto = true }
run = "bundle install"
["root:install:apt"]
hide = true
sources = ["aptfile"]
outputs = { auto = true }
run = '''
#!/usr/bin/env bash
# Are we truly in a CI environment, or on a local machine but running the CI script?
# If we are, GitHub (and other CI providers) will set the CI environment variable.
if [[ "$(uname)" != "Linux" ]]; then
exit 0
fi
sudo apt-get update
xargs sudo apt-get install -y < aptfile
'''
["root:install"]
hide = true
depends = ["root:install:*"]
["root:audit:pip-audit"]
hide = true
run = '''
#!/usr/bin/env bash
set -e -o pipefail
uv run pip-audit --disable-pip -r <(uv export --format requirements.txt --all-groups)
'''
["root:audit:pnpm-audit"]
hide = true
run = "pnpm audit"
["root:audit"]
description = "Audit root dependencies"
depends = ["root:audit:*"]
run = "true"
["root:libyear:libyear-toml"]
hide = true
run = "libyear toml pyproject.toml"
["root:libyear:pnpm-libyear"]
hide = true
run = "npx libyear"
["root:libyear"]
description = "Check root libyear"
depends = ["root:libyear:*"]
run = "true"
["docs:lint:toml"]
hide = true
sources = ["mise.toml", "root.mise.toml"]
outputs = { auto = true }
run = "npx eslint mise.toml root.mise.toml"
["root:lint:yamllint-workflows"]
hide = true
sources = [".github/**/*.(yaml|yml)"]
outputs = { auto = true }
run = "uv run yamllint --config-file=./tasks/_resources/check/lint/yamllint .github/"
["root:lint:markdownlint-readme"]
hide = true
sources = ["README.md"]
outputs = { auto = true }
run = "npx markdownlint-cli2 README.md"
["root:lint"]
description = "Check root lint"
depends = ["root:lint:*"]
run = "true"