-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
45 lines (44 loc) · 1.25 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: check-symlinks
- id: check-illegal-windows-names
- id: check-docstring-first
- id: check-case-conflict
- id: check-added-large-files
- id: name-tests-test
args: ["--pytest-test-first"]
- id: forbid-submodules
- id: detect-private-key
- id: destroyed-symlinks
- id: debug-statements
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0 # Use the ref you want to point at
hooks:
- id: python-check-mock-methods
- id: python-no-eval
- id: text-unicode-replacement-char
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi]
args: [--select, I, --fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- repo: https://github.com/PyCQA/bandit
rev: "1.7.10"
hooks:
- id: bandit
args: ["-c", "pyproject.toml", "--recursive"]