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
A framework for managing and maintaining multi-language pre-commit hooks.
4
+
5
+
---
6
+
7
+
## What is it used for here?
8
+
!!! question "!"
9
+
- Automatically runs linters, formatters, and tests before each commit
10
+
- Ensures code quality and formatting consistency on every commit
11
+
- Prevents committing code that doesn't meet project standards
12
+
13
+
---
14
+
15
+
## How to use it?
16
+
17
+
!!! tip "!"
18
+
=== "Setup (runs automatically on make init)"
19
+
20
+
```bash
21
+
make init
22
+
# or manually:
23
+
uv run pre-commit install --install-hooks
24
+
```
25
+
26
+
=== "Run all hooks manually"
27
+
28
+
```bash
29
+
uv run pre-commit run --all-files
30
+
```
31
+
32
+
---
33
+
34
+
## How to add hooks
35
+
36
+
- Edit the [.pre-commit-config.yaml](https://github.com/python-boilerplate/uv-template/blob/main/.pre-commit-config.yaml) file and add the required hook. For example, to add Ruff:
0 commit comments