You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository has a pre-commit that will validate that JSON files conform to the JSON schema. The pre-commit requires using [uv](https://docs.astral.sh/uv/) for dependency management.
6
+
7
+
To run the pre-commit on git staged files only:
8
+
9
+
```sh
10
+
uv run pre-commit run
11
+
```
12
+
13
+
To run the pre-commit on all files:
14
+
15
+
```sh
16
+
uv run pre-commit run --all-files
17
+
```
18
+
19
+
To run the pre-commit specific files:
20
+
21
+
```sh
22
+
uv run pre-commit run --files /path/to/data/a.json /path/to/data/b.json
23
+
```
24
+
25
+
To optionally install the pre-commit so that it will run when before `git commit` (optional):
0 commit comments