-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
118 lines (118 loc) · 2.98 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
exclude: ^(.*\/migrations|.*package.json|.*package-lock.json|Pipfile*)
repos:
- hooks:
- args:
- --maxkb=700
id: check-added-large-files
- id: check-merge-conflict
- id: forbid-new-submodules
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-symlinks
- id: check-vcs-permalinks
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
- hooks:
- id: check-json
- args:
- --autofix
id: pretty-format-json
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: check-ast
language_version: python3.10
- id: check-builtin-literals
language_version: python3.10
- id: check-docstring-first
language_version: python3.10
- id: debug-statements
language_version: python3.10
- args:
- --remove
id: fix-encoding-pragma
- id: requirements-txt-fixer
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: pyupgrade
repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
- hooks:
- id: black
language_version: python3.10
repo: https://github.com/ambv/black
rev: 23.12.1
- hooks:
- args:
- --config=.flake8
id: flake8
language_version: python3.10
repo: https://github.com/PyCQA/flake8
rev: 7.0.0
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v1.5.1' # Use the sha / tag you want to point at
# hooks:
# - id: mypy
# language_version: python3.10
- hooks:
- id: python-safety-dependencies-check
repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.3.2
- hooks:
- id: beautysh
repo: https://github.com/bemeurer/beautysh.git
rev: v6.2.1
- hooks:
- id: script-must-have-extension
repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
- hooks:
- id: check-xml
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- args:
- '-d {rules: {line-length: {max: 999}}}'
id: yamllint
repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
- hooks:
- id: check-yaml
- id: sort-simple-yaml
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: gitlab-ci-linter
repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.6
- repo: local
hooks:
- id: check-django-migrations
name: Check django migrations
entry: python3 manage.py makemigrations --dry-run --check
language: system
types: [python] # hook only runs if a python file is staged
pass_filenames: false
- repo: local
hooks:
- id: django-test
name: django-test
entry: python manage.py test --no-input
always_run: true
pass_filenames: false
language: system