-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (46 loc) · 1.44 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (46 loc) · 1.44 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
49
50
# Pre-commit hooks for bead package
#
# Installation:
# pip install pre-commit
# pre-commit install
#
# Run manually:
# pre-commit run --all-files
#
# Update hook versions:
# pre-commit autoupdate
repos:
# Docstring format validation (NumPy convention)
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
args:
- --convention=numpy
# D105: Missing docstring in magic method (acceptable)
# D107: Missing docstring in __init__ (we document in class docstring)
# D202: No blank lines allowed after docstring (conflicts with ruff format)
- --add-ignore=D105,D107,D202
exclude: ^(tests/|bead/dsl/parser\.py|gallery/)
# Docstring-signature consistency validation
- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
hooks:
- id: darglint
args:
# Verbosity level 2: full error messages
- -v
- "2"
exclude: ^(tests/|bead/dsl/parser\.py|bead/active_learning/|bead/simulation/)
# Additional code quality checks (optional but recommended)
# Uncomment to enable after Phase 2
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.5.0
# hooks:
# - id: trailing-whitespace
# - id: end-of-file-fixer
# - id: check-yaml
# - id: check-added-large-files
# - id: check-merge-conflict
# - id: check-toml
# - id: mixed-line-ending