-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (49 loc) · 2.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
53 lines (49 loc) · 2.25 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
51
52
53
# .pre-commit-config.yaml — Gardiens souverains du code φ-Meta
#
# Installation :
# pip install pre-commit
# pre-commit install
#
# Exécution manuelle :
# pre-commit run --all-files
repos:
# ─────────────────────────────────────────────
# Ruff — Linting + auto-fix (remplace flake8/isort/pyupgrade)
# ─────────────────────────────────────────────
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# ─────────────────────────────────────────────
# MyPy — Vérification stricte des types
# ─────────────────────────────────────────────
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
files: ^phi_complexity/
additional_dependencies: []
# ─────────────────────────────────────────────
# Gardiens de base (trailing whitespace, fin de fichier, YAML…)
# ─────────────────────────────────────────────
- 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: debug-statements
# ─────────────────────────────────────────────
# Phi-check — Audit local pour bloquer le code/piratage/lourds risques
# ─────────────────────────────────────────────
- repo: local
hooks:
- id: phi-check
name: "Phi audit check"
entry: python phi_check.py
language: python
stages: [commit]