-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 1.04 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
description: Prevents adding large files to the repository
- id: check-merge-conflict
description: Prevents adding files with merge conflict markers
- id: check-toml
description: Checks TOML files for syntax errors
- id: name-tests-test
description: Checks that test files are named correctly
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi]
args: [--fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi]
- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
hooks:
- id: bandit
description: Checks Python code for security issues
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
# exclude: some_file.py