This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
65 lines (60 loc) · 2.01 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
default_language_version:
python: python3.12
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.8.1
hooks:
- id: poetry-check
name: check poetry config in pyproject.toml is valid
args: [--no-interaction]
- id: poetry-check
name: check poetry.lock file is valid
args: [--lock, --no-interaction]
- repo: local
hooks:
- id: django-check
name: check for major errors in django project
entry: bash -c 'poetry run python manage.py check'
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/ecugol/pre-commit-hooks-django
rev: v0.4.0
hooks:
- id: check-absent-migrations
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml
- id: check-symlinks
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-ast
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- id: name-tests-test
args: [--django]
exclude: "utils.py$"
- id: no-commit-to-branch
args: [--branch, main, --branch, jhipster-archive]
- id: pretty-format-json
args: [--autofix, --indent, "4"]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations