-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
48 lines (46 loc) · 1.23 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
ci:
autofix_prs: false
skip: ["mypy"]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. If bumping this, please also bump requirements-dev.in
rev: v0.9.3
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args:
[
"--disable-plugin",
"HexHighEntropyString",
"--disable-plugin",
"Base64HighEntropyString",
]
exclude: tests/pre_award/keys/rsa256
# djLint moved in from assess - to apply as a precommit hook we should make sure it works with
# apply templates
# - repo: https://github.com/Riverside-Healthcare/djLint
# rev: v1.24.0
# hooks:
# - id: djlint-jinja
# types_or: ['html', 'jinja']
- repo: local
hooks:
- id: mypy
name: Run type checks
language: system
types: [python]
entry: uv run mypy
pass_filenames: false