-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (49 loc) · 1.31 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
56 lines (49 loc) · 1.31 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
repos:
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: '\.md$'
- id: end-of-file-fixer
exclude: '\.md$'
- id: check-yaml
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
# Security Analysis
- repo: https://github.com/PyCQA/bandit
rev: 1.8.3
hooks:
- id: bandit
args: ["-r", "api/", "--exclude", "tests/"]
pass_filenames: false
- repo: local
hooks:
- id: mypy-strict
name: Type check with mypy (strict mode)
entry: mypy
args: [api/, --strict]
language: system
stages: [pre-commit]
pass_filenames: false
- id: code-quality-check
name: Code Quality Analysis
entry: python scripts/code-quality-check.py
language: python
stages: [pre-push]
always_run: true
pass_filenames: false
verbose: true
- id: run-ci-simulation
name: Run CI simulation
entry: ./scripts/run-like-ci.sh
language: script
stages: [pre-push]
pass_filenames: false
verbose: true