-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (49 loc) · 1.41 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
52 lines (49 loc) · 1.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: end-of-file-fixer
- id: detect-private-key
- id: debug-statements
- id: check-ast
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.2
hooks:
- id: gitleaks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: local
hooks:
- id: prevent-master-commit
name: Prevent commits to master branch
entry: scripts/prevent-master-commit.sh
language: script
stages: [pre-commit]
always_run: true
pass_filenames: false
- id: version-check
name: Check for version bump
entry: python scripts/check_version.py
language: python
additional_dependencies: ["tomli>=2.0"]
stages: [pre-commit]
pass_filenames: false
- id: prevent-master-push
name: Prevent pushes to master branch
entry: scripts/prevent-master-push.sh
language: script
stages: [pre-push]
always_run: true
pass_filenames: false