-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.pre-commit-config.yaml
76 lines (67 loc) · 1.59 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
---
minimum_pre_commit_version: 3.1.1
repos:
# pre-commit hooks
# ----------
# Hooks that actively "change" files (formatters etc.)
# ----------------------------------
# Standard pre-commit rules
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
# isort (in black-compatibility mode)
- repo: https://github.com/pycqa/isort
rev: 5.13.1
hooks:
- id: isort
exclude: 'migrations/'
args:
- --profile
- black
- --filter-files
# Black (uncompromising) Python code formatter
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
exclude: 'migrations/'
args:
- --skip-string-normalization
- --target-version
- py311
# Hooks that do not "change" files (linters etc.)
# --------------------------------
# MyPy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
exclude: 'migrations/'
additional_dependencies:
- types-PyYAML
- types-pymysql
- types-pytz
- types-python-dateutil
- types-requests
# Pylint
- repo: https://github.com/pycqa/pylint
rev: v3.0.3
hooks:
- id: pylint
exclude: 'migrations/'
additional_dependencies:
- pylint-django
args:
- --load-plugins
- pylint_django,pylint_django.checkers.migrations
- --django-settings-module
- fragalysis.settings