-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.15 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
exclude: '(^data/|^app/entrypoints/)'
# See https://pre-commit.ci/ for more config options
ci:
# autoupdate_schedule: 'quarterly'
autoupdate_branch: 'pre-commit'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-byte-order-marker
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
#- repo: https://gitlab.com/pycqa/flake8
# rev: '3.7.7'
# hooks:
# - id: flake8
# args: ["--config=setup.cfg"]
# language_version: python3
#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.812
# hooks:
# - id: mypy
# name: Run type checks
# args: ["--ignore-missing-imports"]
#- repo: https://github.com/pycqa/pydocstyle
# rev: 5.0.2
# hooks:
# - id: pydocstyle
#- repo: local
# hooks:
# - id: migrations-check
# language: system
# name: Check for uncreated migrations.
# entry: bash -c "./manage.py makemigrations --check --dry-run"
# types: ["python"]
# pass_filenames: false