-
Notifications
You must be signed in to change notification settings - Fork 27
/
.pre-commit-config.yaml
52 lines (52 loc) · 1.66 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
repos:
- repo: https://github.com/ambv/black
rev: 23.12.1
hooks:
- id: black
args: ['--quiet']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: detect-private-key
- id: double-quote-string-fixer
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [
'flake8-bugbear', # Looks for likely bugs and design problems
'flake8-comprehensions', # Looks for unnecessary generator functions that can be converted to list comprehensions
'flake8-deprecated', # Looks for method deprecations
'flake8-use-fstring', # Enforces use of f-strings over .format and %s
'flake8-print', # Checks for print statements
'flake8-docstrings', # Verifies that all functions/methods have docstrings
'flake8-type-checking', # Looks for misconfigured type annotations
'flake8-annotations', # Enforces type annotation
]
args: ['--enable-extensions=G']
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
files: 'django_guid/.*'
- id: isort
files: 'tests/.*'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
[
django
]