File size: 1,161 Bytes
22087d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Development Scripts

Utility scripts for development, testing, and verification.

Located in `core/utils/scripts/` to keep them organized within the core module structure.

## Scripts

### `verify_build.py`
Comprehensive build verification script that checks:
- All critical imports work
- Python syntax is valid
- No undefined names (via ruff)
- API module can be imported
- Worker module can be imported
- Old import paths are not used

**Usage:**
```bash
uv run python core/utils/scripts/verify_build.py
# or via Makefile:
make verify
```

### `check_imports.py`
Quick check of critical imports to verify they resolve correctly.

**Usage:**
```bash
uv run python core/utils/scripts/check_imports.py
# or via Makefile:
make test-imports
```

### `lint_imports.py`
Lint imports using ruff and direct import testing.

**Usage:**
```bash
uv run python core/utils/scripts/lint_imports.py
```

## Running via Makefile

All scripts can be run via the Makefile from the backend root:

```bash
make verify        # Full build verification
make test-imports  # Quick import check
make lint          # Run ruff linter
make lint-fix      # Run ruff with auto-fix
```