-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-hooks.yaml
81 lines (66 loc) · 2.11 KB
/
.pre-commit-hooks.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
- id: mccabe-complexity
name: Check functions complexity
entry: validate_ajustable_complexity
language: python
- id: expr-complexity
name: Check expressions complexity
entry: validate_expressions_complexity
language: python
- id: no-asserts
name: Check no asserts in code
entry: validate_no_asserts
language: python
- id: django-null-comments
name: Check if all nullable fields are annotated
entry: validate_django_null_true_comments
language: python
- id: django-deprecated-model-field-comments
name: Check if all deprecated fields have valid deprecation comments
entry: validate_django_deprecated_model_field_comments
language: python
- id: django-model-field-names
name: Check Django model field names
entry: validate_django_model_field_names
language: python
- id: test-naming
name: Check if tests named appropriately
entry: validate_test_namings
language: python
- id: line-count
name: Check number of lines in python files
entry: validate_amount_of_py_file_lines
language: python
- id: api-annotated
name: Check api schema annotations
entry: validate_api_schema_annotations
language: python
- id: old-style-annotations
name: Check old-style annotations
entry: validate_old_style_annotations
language: python
- id: package-structure
name: Root packages structure
entry: validate_package_structure
language: python
- id: forbidden-imports
name: Forbidden imports
entry: validate_no_forbidden_imports
language: python
- id: graphql-implicit-fields
name: GraphQL fields implicit exposure
entry: validate_graphql_model_fields_definition
language: python
- id: settings-variables
name: "Settings: no straight assignment"
entry: validate_settings_variables
language: python
- id: celery-tasks-return-types
name: Check celery tasks return types
description: "Check return type for app.task decorated functions"
entry: validate_celery_tasks_return_types
language: python
- id: check-gitleaks
name: Check gitleaks secrets
description: Runs `gitleaks`, requires https://github.com/zricethezav/gitleaks
entry: scripts/check-gitleaks.sh
language: script