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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,51 @@ uv tool install pre-commit
23
23
pre-commit install --install-hooks
24
24
```
25
25
26
-
After this, every `git commit` will automatically validate your commit message format (see below).
26
+
After this, every `git commit` will automatically run the checks listed in [Pre-commit hooks](#pre-commit-hooks) on your staged files. Commits that fail any check will be blocked.
27
+
28
+
If you haven't run `pre-commit install --install-hooks`, hooks will **not** run automatically. In that case, you can run all checks manually before committing:
29
+
30
+
```bash
31
+
pre-commit run --all-files
32
+
```
33
+
34
+
## Pre-commit hooks
35
+
36
+
The following hooks run automatically on every commit. They are defined in [`.pre-commit-config.yaml`](.pre-commit-config.yaml).
37
+
38
+
### Conventional commits
39
+
40
+
Enforces the [Conventional Commits](https://www.conventionalcommits.org/) format on commit messages (see [Commit message conventions](#commit-message-conventions) below). Runs at the `commit-msg` stage.
41
+
42
+
### Python linting and formatting (ruff)
43
+
44
+
Two hooks from [ruff](https://docs.astral.sh/ruff/):
45
+
46
+
-**ruff** — lints Python files and auto-fixes issues. Rules are defined in [`ruff.toml`](ruff.toml).
47
+
-**ruff-format** — enforces consistent formatting (quotes, indentation, line length).
48
+
49
+
### Markdown linting (markdownlint)
50
+
51
+
Lints `.md` files and auto-fixes what it can (e.g., list indentation, code block languages). Rules are defined in [`.markdownlint.jsonc`](.markdownlint.jsonc); ignored paths in [`.markdownlint-cli2.yaml`](.markdownlint-cli2.yaml).
52
+
53
+
### File-hygiene hooks
54
+
55
+
General-purpose checks from [pre-commit/pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks):
56
+
57
+
| Hook | What it does |
58
+
| ---- | ------------ |
59
+
|`trailing-whitespace`| Removes trailing whitespace from all files |
60
+
|`end-of-file-fixer`| Ensures every file ends with a newline |
61
+
|`check-yaml`| Validates YAML syntax (excludes `charts/` — Helm templates use Go syntax) |
where `<MODEL_NAME>` is the deployment’s **Resource name** (lowercase, no spaces). Example: `https://my-model-myproject.apps.example.com/v1/models/my-churn-model:predict`
132
132
-**Token** (if you enabled token auth): **Projects** → *your project* → **Deployments** → expand the deployment → use the **Token secret** value as `DEPLOYMENT_TOKEN`.
0 commit comments