-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
50 lines (45 loc) · 1.12 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
---
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
files: \.(yaml|yml)$
args: [--unsafe]
- id: check-added-large-files
- id: name-tests-test
args:
- "--django"
- repo: https://github.com/PyCQA/isort
rev: "5.13.2"
hooks:
- id: isort
args:
- "--profile=black"
exclude: ^.devcontainer/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.9"
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/adrienverge/yamllint.git
rev: "v1.35.1"
hooks:
- id: yamllint
files: \.(yaml|yml)$
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
stages: [manual]
...