-
Notifications
You must be signed in to change notification settings - Fork 180
/
.pre-commit-config.yaml
48 lines (45 loc) · 1.44 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
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*dataset/.*|
(?x)(
^config/local_ti_files/own_malicious_JA3.csv$|
.*test.* |
.*\.md$
)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
exclude: ^config/local_ti_files/known_fp_hashes\.csv$
- id: check-docstring-first
- id: check-merge-conflict
- id: end-of-file-fixer
- id: detect-private-key
exclude: .*dataset/.* |
(?x)(
^config/$|
.*test.* |
.*\.md$
)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# excludes formatting slips_files/common/imports.py
exclude: imports
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
args: ['--line-length' , '79']
language_version: python3.10.12
# excludes formatting slips_files/common/imports.py
exclude: imports