Spaces:
Sleeping
Sleeping
edit pre-commits
Browse files- .pre-commit-config.yaml +13 -8
- README.md +1 -1
.pre-commit-config.yaml
CHANGED
@@ -2,19 +2,24 @@ repos:
|
|
2 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
rev: v5.0.0
|
4 |
hooks:
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
10 |
rev: v0.12.0
|
11 |
hooks:
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
17 |
rev: v1.16.1
|
18 |
hooks:
|
19 |
-
|
20 |
-
|
|
|
2 |
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
rev: v5.0.0
|
4 |
hooks:
|
5 |
+
- id: check-added-large-files
|
6 |
+
args: [--maxkb=5000]
|
7 |
+
- id: detect-private-key
|
8 |
+
|
9 |
+
- repo: https://github.com/astral-sh/uv-pre-commit
|
10 |
+
rev: 0.7.13
|
11 |
+
hooks:
|
12 |
+
- id: uv-lock
|
13 |
|
14 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
15 |
rev: v0.12.0
|
16 |
hooks:
|
17 |
+
- id: ruff
|
18 |
+
args: [--fix]
|
19 |
+
- id: ruff-format
|
20 |
|
21 |
- repo: https://github.com/pre-commit/mirrors-mypy
|
22 |
rev: v1.16.1
|
23 |
hooks:
|
24 |
+
- id: mypy
|
25 |
+
exclude: '^(?!src).*'
|
README.md
CHANGED
@@ -8,7 +8,7 @@ This project uses `uv` as environment & dependency manager, and `python 3.12` as
|
|
8 |
```shell
|
9 |
uv venv
|
10 |
uv sync
|
11 |
-
|
12 |
```
|
13 |
|
14 |
## Basic usage
|
|
|
8 |
```shell
|
9 |
uv venv
|
10 |
uv sync
|
11 |
+
(Optional) pre-commit install
|
12 |
```
|
13 |
|
14 |
## Basic usage
|