-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (61 loc) · 1.79 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (61 loc) · 1.79 KB
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
59
60
61
62
63
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
name: "Check: no merge conflict strings"
- id: check-ast
name: "Check: parse .py files"
language_version: python3.12
- id: check-json
name: "Check: parse .json files"
- id: check-toml
name: "Check: parse .toml files"
- id: check-yaml
name: "Check: parse .yaml files"
- id: check-case-conflict
name: "Check: no case conflicting file names"
- id: trailing-whitespace
name: "Lint : remove trailing whitespaces"
- id: end-of-file-fixer
name: "Lint : files end with only newline"
- id: mixed-line-ending
name: "Lint : consistent file ending"
- id: detect-private-key
name: "Check: no private keys are commited"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.8
hooks:
- id: ruff-check
name: ruff linter
args: ["--fix"]
- id: ruff-format
name: ruff formatter
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.16
hooks:
- id: uv-lock
- id: uv-export
name: main dependencies
args:
- "--frozen"
- "--output-file=requirements.txt"
- "--no-default-groups"
- "--quiet"
- "--no-annotate"
- "--no-hashes"
- "--project=backend"
- "--no-header"
- "--no-cache"
- id: uv-export
name: dev dependencies
args:
- "--frozen"
- "--output-file=requirements.dev.txt"
- "--all-groups"
- "--quiet"
- "--no-annotate"
- "--no-hashes"
- "--project=backend"
- "--no-header"
- "--no-cache"