forked from skorokithakis/harbormaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 996 Bytes
/
.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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
name: Run type checks
args: ["--ignore-missing-imports"]
additional_dependencies: ["types-requests"]
- repo: local
hooks:
- id: no-testing
name: Forbid testing code
entry: "count - 1\\d+"
language: pygrep
types: [python]
- repo: local
hooks:
- id: no-todos
name: Forbid TODOs
entry: "TODO"
language: pygrep
types: [python]
stages: [manual]
- repo: local
hooks:
- id: gitchangelog
language: system
always_run: true
pass_filenames: false
name: Generate changelog
entry: bash -c "gitchangelog > CHANGELOG.md"
stages: [commit]
- repo: local
hooks:
- id: forbid_prints
name: Check for leftover print statements.
types: [python]
entry: "print\\s*\\("
language: pygrep