-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (63 loc) · 1.66 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (63 loc) · 1.66 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# To enable this pre-commit hook run:
# `pip install pre-commit` or `brew install pre-commit`
# Then run `pre-commit install`
exclude: 'tests\/test_cases'
# Learn more about this config here: https://pre-commit.com/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-toml
types: [toml]
- id: check-yaml
types: [yaml]
- id: end-of-file-fixer
types: [text]
stages: [pre-commit, pre-push, manual]
- id: trailing-whitespace
types: [text]
stages: [pre-commit, pre-push, manual]
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/PyCQA/isort
rev: 8.0.1
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.16.0
# hooks:
# - id: mypy
# additional_dependencies:
# - types-python-dateutil
# - types-requests
# exclude: ^(docs/|tests/)
# - repo: https://github.com/jorisroovers/gitlint
# rev: v0.19.1
# hooks:
# - id: gitlint
#
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v3.2.0
hooks:
- id: setup-cfg-fmt
args: [--min-py-version, '3.9']
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks