forked from morganzero/cloudflare-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
60 lines (54 loc) · 1.4 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
59
60
---
default_stages: [commit]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
hooks:
- id: ruff
name: Ruff linter
args: [--fix]
types_or: [python, pyi]
- id: ruff-format
name: Ruff format
types_or: [python, pyi]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
- mdformat-ruff
- repo: https://github.com/hadolint/hadolint
rev: v2.13.0-beta
hooks:
- id: hadolint
name: Lint Dockerfiles
description: Runs hadolint to lint Dockerfiles
language: system
types: ["dockerfile"]
entry: hadolint
- repo: local
hooks:
- id: update-version
name: Update Version
entry: uv run scripts/versioning.py
language: python
pass_filenames: false
stages: [commit]
files: ^pyproject\.toml$
- id: mypy
name: mypy static type checker
language: system
types: [python]
entry: uv run mypy
pass_filenames: false
- id: pyupgrade
name: Pyupgrade
entry: uv run pyupgrade --py311-plus
types: [python]
language: system
- id: deptry
name: Deptry
entry: uv run deptry src tests
types: [python]
language: system
pass_filenames: false