generated from seapagan/poetry-dev-setup
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
58 lines (54 loc) · 1.51 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ci:
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
args: [--unsafe]
- id: trailing-whitespace
- id: check-toml
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.110.2
hooks:
- id: renovate-config-validator
files: ^renovate\.json$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
name: "lint with ruff"
- id: ruff-format
name: "format with ruff"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.11.2" # Use the sha / tag you want to point at
hooks:
- id: mypy
name: "run mypy"
additional_dependencies:
- "types-requests"
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.4.18
hooks:
# Update the uv lockfile
- id: uv-lock
- id: uv-export
name: "Export dependencies to 'requirements.txt'"
args:
[
"--no-hashes",
"--no-dev",
"--no-emit-project",
"--output-file=requirements.txt",
]
- id: uv-export
name: "Export dev dependencies to 'requirements-dev.txt'"
args:
[
"--no-hashes",
"--no-emit-project",
"--output-file=requirements-dev.txt",
]