forked from best-doctor/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
67 lines (61 loc) · 1.65 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
65
66
67
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-ast
- id: check-executables-have-shebangs
- id: check-yaml
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.7.0
hooks:
- id: python-check-blanket-noqa
exclude: |
(?x)(
hooks/validate_ajustable_complexity.py|
hooks/validate_expressions_complexity.py|
hooks/tests/test_integration/test_validate_settings_variables.py
)
- repo: https://github.com/PyCQA/isort
rev: '5.7.0'
hooks:
- id: isort
exclude: hooks/tests/test_integration/test_validate_django_model_field_names/samples
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.4
hooks:
- id: autopep8
- repo: https://gitlab.com/pycqa/flake8
rev: '3.8.2'
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
exclude: hooks/tests
- repo: https://github.com/best-doctor/pre-commit-hooks
rev: v1.0.4
hooks:
- id: mccabe-complexity
name: Check functions complexity
language: python
- id: expr-complexity
name: Check expressions complexity
exclude: /samples/
language: python
- id: no-asserts
name: Check no asserts in code
language: python
exclude: /tests/
- id: test-naming
name: Check if tests named appropriately
language: python
- id: line-count
name: Check number of lines in python files
language: python
- id: old-style-annotations
name: Check old-style annotations
language: python