-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (39 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (39 loc) · 1.13 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/ambv/black
rev: 24.10.0
hooks:
- id: black
language_version: python3.12
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
language_version: python3.12
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.13.0" # Use the sha / tag you want to point at
hooks:
- id: mypy
language_version: python3.12
additional_dependencies: [types-PyYAML==6.0.12.*]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.3
hooks:
- id: gitleaks
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
# https://github.com/PyCQA/pydocstyle/blob/master/docs/snippets/cli.rst
args:
- --convention=google
- repo: https://github.com/google/yamlfmt
rev: v0.10.0
hooks:
- id: yamlfmt