forked from Azure/mlops-v2-gha-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
51 lines (49 loc) · 1.32 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
49
50
51
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: end-of-file-fixer
- id: name-tests-test
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
hooks:
- id: pyupgrade
name: PyUpgrade
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: Black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
name: MyPy
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
name: bandit
# # XXX gitleaks needs to be configured
# - repo: https://github.com/zricethezav/gitleaks
# rev: v8.15.0
# hooks:
# - id: gitleaks-docker
# name: gitleaks
# entry: zricethezav/gitleaks detecet --verbose --source0. --config=gitleaks.toml --redact
# XXX ruff is still alpha: but it will become a better alternative
# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.0.284
# hooks:
# - id: ruff
# args: [--fix, --exit-non-zero-on-fix]