-
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 (47 loc) · 1.79 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
53 lines (47 loc) · 1.79 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- 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
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: local
hooks:
- id: skylos
name: skylos
entry: skylos .
language: system
types: [python]
pass_filenames: false
# F-gate: full test suite on commit (code changed)
- id: pytest-gate
name: pytest gate (full suite)
entry: uv run --with-editable . --extra dev pytest tests/ -q --junitxml=/tmp/precommit_gate.xml
language: system
pass_filenames: false
stages: [pre-commit]
always_run: true
# F-gate: full push gate (ruff --isolated + mypy 10 dirs + pytest)
- id: prepush-gate
name: pre-push gate (ruff isolated + mypy 10 dirs)
entry: bash -c 'uv run --isolated --with ruff python -m ruff check . && uv run --isolated --with ruff python -m ruff format --check . && uv run --with-editable . --extra dev --extra embeddings mypy features/ shared/ mcp_server/ rag/ hooks/ wiki/ lifecycle/ graph/ core/ autohooks/ eval/'
language: system
pass_filenames: false
stages: [pre-push]
always_run: true
- id: prepush-pytest
name: pre-push pytest gate
entry: bash -c 'ARIEL_HASH_EMBEDDINGS=1 uv run --with-editable . --extra dev pytest tests/ -q --junitxml=/tmp/prepush_gate.xml'
language: system
pass_filenames: false
stages: [pre-push]
always_run: true