-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (51 loc) · 1.32 KB
/
.pre-commit-config.yaml
File metadata and controls
54 lines (51 loc) · 1.32 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude: \.md$
- id: no-commit-to-branch
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.6
hooks:
- id: ruff-check
args: [--fix]
files: \.py$
- id: ruff-format
files: \.py$
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.91.1
hooks:
- id: trufflehog
name: TruffleHog Secrets Scanner
entry: trufflehog
language: golang
types_or: [python, yaml, json, text]
args:
[
"filesystem",
"src",
"tests",
".github/workflows",
"--results=verified,unknown",
"--exclude-paths=.venv",
"--fail"
]
stages: ["pre-commit", "pre-push"]
- repo: local
hooks:
- id: ty
name: type checking using ty
entry: uvx ty check src/pruna
language: system
types: [python]
pass_filenames: false
files: \.py$