Skip to content

Commit 8ef530c

Browse files
committed
Add mise config
1 parent c6a810f commit 8ef530c

File tree

4 files changed

+41
-59
lines changed

4 files changed

+41
-59
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Configure Git
15-
run: |
16-
git config --global user.email "jdoe@example.com"
17-
git config --global user.name "J. Doe"
18-
- name: Run install-dev-tools.sh
14+
- name: Install mise
1915
run: |
2016
set -e
21-
mkdir $HOME/bin
22-
./dev/bin/install-dev-tools.sh
17+
set -x
18+
curl https://mise.run | sh
19+
mise install
2320
- name: Run precious
2421
run: |
25-
PATH=$PATH:$HOME/bin precious lint -a
22+
mise exec -- precious lint -a

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,29 @@ The ID of the workflow artifact that was created.
139139
### `artifact-url`
140140

141141
The URL of the workflow artifact that was created.
142+
143+
## Linting and Tidying this Code
144+
145+
The code in this repo is linted and tidied with
146+
[`precious`](https://github.com/houseabsolute/precious). This repo contains a `mise.toml` file.
147+
[Mise](https://mise.jdx.dev/) is a tool for managing dev tools with per-repo configuration. You can
148+
install `mise` and use it to run `precious` as follows:
149+
150+
```
151+
# Installs mise
152+
curl https://mise.run | sh
153+
# Installs precious and other dev tools
154+
mise install
155+
```
156+
157+
Once this is done, you can run `precious` via `mise`:
158+
159+
```
160+
# Lints all code
161+
mise exec -- precious lint -a
162+
# Tidies all code
163+
mise exec -- precious tidy -a
164+
```
165+
166+
If you want to use `mise` for other projects, see [its documentation](https://mise.jdx.dev/) for
167+
more details on how you can configure your shell to always activate `mise`.

dev/bin/install-dev-tools.sh

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

mise.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[tools]
2+
node = "22.11.0"
3+
"npm:prettier" = "3.4.1"
4+
ruff = "0.8.3"
5+
shellcheck = "0.10.0"
6+
shfmt = "v3.10.0"
7+
taplo = "0.9.3"
8+
typos = "1.28.1"
9+
"ubi:houseabsolute/omegasort" = "v0.1.3"
10+
"ubi:houseabsolute/precious" = "v0.7.3"

0 commit comments

Comments
 (0)