This repository was archived by the owner on Mar 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (52 loc) · 1.8 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (52 loc) · 1.8 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
54
55
56
57
repos:
- repo: local
hooks:
# Prevent skipping tests
- id: no-skip-tests
name: No @pytest.mark.skip decorators allowed
entry: sh -c 'if grep -r "@pytest\.mark\.skip[^_]" --include="test_*.py" tests/ 2>/dev/null | grep -v skip_ci; then echo "❌ Found @pytest.mark.skip decorators! Tests must not be skipped."; exit 1; fi'
language: system
pass_filenames: false
always_run: true
# Ensure smoke tests pass
- id: smoke-tests
name: Run smoke tests (critical paths)
entry: uv run pytest tests/smoke/ -v --tb=short -m smoke
language: system
pass_filenames: false
stages: [manual]
# Schema compliance runs in CI only (requires uv + full test environment)
# See .github/workflows/ci.yml for schema compliance validation
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-json
- id: check-merge-conflict
- id: check-ast
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
hooks:
- id: ruff
args: [--fix]
exclude: ^(scripts/|src/creative_agent/schemas_generated/)
- id: ruff-format
exclude: ^src/creative_agent/schemas_generated/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
hooks:
- id: mypy
files: ^src/
exclude: ^src/creative_agent/schemas_generated/
additional_dependencies:
- pydantic>=2.0.0
- types-pillow>=10.0.0
- boto3-stubs[s3]>=1.35.0
- types-markdown>=3.6
- types-bleach>=6.3.0
args: [--strict]