-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (41 loc) · 1.07 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (41 loc) · 1.07 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
default_install_hook_types: [pre-commit, pre-push]
repos:
# Code style rules that are Chronicle-specific (AGENTS.md → Code Style)
- repo: local
hooks:
- id: import-placement
name: imports at top of file (or explained)
entry: python3 scripts/check_import_placement.py
language: system
types: [python]
exclude: \.venv/
stages: [pre-commit, pre-push]
# Code formatting
- repo: https://github.com/psf/black
rev: 26.5.1
hooks:
- id: black
language_version: python3.12
exclude: \.venv/
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args:
[
"--profile",
"black",
"-p",
"simple_speaker_recognition",
"-p",
"turn_segmenter",
]
exclude: \.venv/
# File hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: \.venv/
- id: end-of-file-fixer
exclude: \.venv/