-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (42 loc) · 1.26 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
46 lines (42 loc) · 1.26 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
# Pre-commit hooks for H-JEPA
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
# Black - Python code formatter
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
args: [--line-length=100]
language_version: python3.11
# Ruff - Fast Python linter (replaces flake8, isort, and more)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# Trailing whitespace and other basic checks
- 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
args: [--allow-multiple-documents]
- id: check-added-large-files
args: [--maxkb=10000]
- id: check-merge-conflict
- id: debug-statements
- id: mixed-line-ending
args: [--fix=lf]
# Mypy - static type checking (uses your local environment to avoid stub mismatches)
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy src/
args: [--no-error-summary]
language: system
types: [python]
files: ^src/
pass_filenames: false