-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (43 loc) · 1.35 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
48 lines (43 loc) · 1.35 KB
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
# See https://pre-commit.com for more information
# Install locally:
# pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type prepare-commit-msg
# Run manually:
# pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.2
hooks:
- id: ruff-check
types_or: [ python, pyi ]
args: [--fix]
- id: ruff-format
types_or: [ python, pyi ]
- repo: local
hooks:
- id: no-local-path-sources
name: Block local path = "..." in pyproject.toml
entry: .githooks/check-no-local-path.sh
language: script
stages: [pre-commit]
pass_filenames: false
- id: dco-auto-signoff
name: Auto-add DCO Signed-off-by line
entry: .githooks/auto-signoff.sh
language: script
stages: [prepare-commit-msg]
pass_filenames: true
- id: dco-signoff
name: Require DCO Signed-off-by line
entry: python .github/scripts/check_dco_signoff.py
language: python
stages: [commit-msg]