-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
78 lines (69 loc) · 1.95 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3 # Use the sha or tag you want to point at
hooks:
- id: prettier
name: Prettier
stages: [commit]
- repo: local
hooks:
- id: eslint
name: ESLint
language: system
files: \.(j|t)sx?$
entry: ./.bin/pre-commit-lint.sh
- id: mypy
name: Mypy
language: system
types: [python]
entry: ./.bin/pre-commit-mypy.sh
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-vcs-permalinks
- id: check-yaml
exclude: (^helm/.*/templates/)
- id: end-of-file-fixer
exclude: (^erd_diagrams/)
- id: trailing-whitespace
- id: debug-statements
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
args: ["bc_obps/", "--fix"]
- repo: https://github.com/python-poetry/poetry
rev: 1.6.1
hooks:
- id: poetry-check
args: ["-C", "./bc_obps"]
- id: poetry-lock
args: ["-C", "./bc_obps", "--check"] # --check to ensure lock file is up to date without updating it
- repo: https://github.com/PyCQA/bandit
rev: "1.7.5"
hooks:
- id: bandit
args: ["-c", "bc_obps/bandit.yaml"]
- repo: https://github.com/zricethezav/gitleaks
rev: v8.2.5
hooks:
- id: gitleaks
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]