-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
82 lines (80 loc) · 2.41 KB
/
.pre-commit-config.yaml
File metadata and controls
82 lines (80 loc) · 2.41 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# By default, run each hook only in the standard pre-commit stage
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
# This is a template for connector pre-commit hooks
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.1.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--verbose]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: ^NOTICE$
exclude_types: [ markdown ]
- id: trailing-whitespace
exclude: ^NOTICE$
exclude_types: [ markdown ]
- id: requirements-txt-fixer
- id: check-json
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.7
hooks:
- id: ruff
args: [ "--fix", "--unsafe-fixes"] # Allow unsafe fixes (ruff pretty strict about what it can fix)
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: v1.36.4
hooks:
- id: djlint-reformat-django
- id: djlint-django
- repo: https://github.com/hukkin/mdformat
rev: 0.7.22
hooks:
- id: mdformat
exclude: "release_notes/.*"
- repo: https://github.com/returntocorp/semgrep
rev: v1.89.0
hooks:
- id: semgrep
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--no-verify']
exclude_types: [json]
exclude: "README.md"
# Central hooks
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v2.0.4
hooks:
- id: build-docs
language: python
additional_dependencies: ["local-hooks"]
args: ['.']
- id: copyright
language: python
additional_dependencies: ["local-hooks"]
args: ['.']
- id: package-app-dependencies
language: python
additional_dependencies: ["local-hooks"]
- id: notice-file
language: python
additional_dependencies: ["local-hooks"]
args: ['.']
- id: release-notes
language: python
additional_dependencies: ["local-hooks"]
args: ['.']
- id: static-tests
language: python
additional_dependencies: ["local-hooks"]
args: ['.']