This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
106 lines (106 loc) · 3.22 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-ast
- id: check-toml
- id: check-yaml
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: debug-statements
- id: name-tests-test
args: [--django]
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: requirements-txt-fixer
- repo: https://github.com/paulhfischer/pre-commit-hooks
rev: v1.2.44
hooks:
- id: format-general
- id: format-web
#- id: lint-css
#- id: lint-javascript
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.3
hooks:
- id: add-trailing-comma
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
- id: python-use-type-annotations
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
- repo: https://gitlab.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies:
- flake8-broken-line
- flake8-commas
- flake8-bugbear
- flake8-comprehensions
- flake8-mutable
- flake8-return
- flake8-typing-imports
- flake8-simplify
- flake8-print
- flake8-use-fstring
- flake8-django
- repo: local
hooks:
- id: django-makemigrations
name: django-migrations
entry: ./manage.py makemigrations
language: system
pass_filenames: false
- id: django-check
name: django-check
entry: ./manage.py check --fail-level=INFO
language: system
pass_filenames: false
- id: django-migratate
name: django-migrations
entry: ./manage.py migrate
language: system
pass_filenames: false
- id: django-makemessages
name: django-makemessages
entry: ./manage.py makemessages -a --add-location=file --ignore="venv/*"
language: system
pass_filenames: false
- id: django-compilemessages
name: django-compilemessages
entry: ./manage.py compilemessages --ignore="venv/*"
language: system
pass_filenames: false
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
exclude: (fixture.py|tests)
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: migrations