-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
46 lines (41 loc) · 1.1 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
ci:
skip: [sync-scripts]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
fail_fast: true
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: requirements-txt-fixer
- id: no-commit-to-branch
args: ["--branch", "main"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pylint-dev/pylint
rev: v3.3.1
hooks:
- id: pylint
additional_dependencies: [mock==3.0.5, jsonschema==3.2.0]
args: [
"-sn", # Don't display the score
"--rcfile=.pylintrc", # Link to your config file
]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.1
hooks:
- id: gitleaks-docker
stages: [manual, Nonepre-pushNone]
- repo: local
hooks:
- id: sync-scripts
name: sync-scripts
entry: python misc/sync_scripts.py
args: ["tasks"]
language: system
types: [python]
pass_filenames: false