-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (39 loc) · 1016 Bytes
/
.pre-commit-config.yaml
File metadata and controls
42 lines (39 loc) · 1016 Bytes
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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-docstring-first
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- 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"
exclude: '(^|/)tests/(?:.+/)?base\.py$'
- id: requirements-txt-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.7"
hooks:
# Run the linter.
- id: ruff-check
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/adrienverge/yamllint
rev: "v1.38.0"
hooks:
- id: yamllint
files: \.(yaml|yml)$
- repo: https://github.com/mgedmin/check-manifest
rev: "0.51"
hooks:
- id: check-manifest
stages: [manual]
...