-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
64 lines (64 loc) · 1.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-yaml
name: 'check-yaml'
- id: end-of-file-fixer
name: 'end-of-file-fixer'
- id: trailing-whitespace
name: 'trailing-whitespace'
- id: no-commit-to-branch
name: 'no-commit-to-branch - (main, develop)'
args: [--branch, main, --branch, develop]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
hooks:
- id: autoflake
name: 'autoflake'
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: 'black'
types: [python]
- repo: https://github.com/timothycrosley/isort
rev: 5.11.5
hooks:
- id: isort
name: 'isort'
types: [python]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: 'flake8'
# Certain checks disabled because of:
# E203: https://black.readthedocs.io/en/stable/the_black_code_style.html#slices
# W503: https://black.readthedocs.io/en/stable/the_black_code_style.html#line-breaks-binary-operators
args:
[
'--max-line-length',
'120',
'--ignore',
'E203, W503',
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
hooks:
- id: mypy
name: mypy
entry: bash -c 'poetry run mypy .'
language: system
types: [python]
- repo: local
hooks:
- id: pylint
name: pylint
entry: bash -c 'poetry run pylint huma_signals'
language: system
types: [python]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.2
hooks:
- id: gitleaks