Skip to content

Commit d41c051

Browse files
authored
Merge pull request #27 from namtroi/ci/cd/setup
fix(ci): fix linting and type-check errors across the workspace
2 parents 5ddcf97 + 31ecf74 commit d41c051

7 files changed

Lines changed: 14 additions & 9 deletions

File tree

apps/ai-worker/tests/test_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import pytest
77
from pathlib import Path
8-
from unittest.mock import patch, MagicMock, AsyncMock
8+
from unittest.mock import patch, AsyncMock
99

1010
# Import from parent directory
1111
import sys

apps/ai-worker/tests/test_processor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
Unit tests for the PDF processor module.
44
"""
55

6-
import pytest
7-
from pathlib import Path
8-
from unittest.mock import patch, MagicMock, AsyncMock
9-
106
# Import from parent directory
117
import sys
8+
from pathlib import Path
9+
from unittest.mock import MagicMock, patch
10+
11+
import pytest
12+
1213
sys.path.insert(0, str(Path(__file__).parent.parent))
1314

1415
from src.processor import PDFProcessor, ProcessingResult

apps/backend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"db:generate": "prisma generate",
1414
"db:migrate": "prisma migrate dev",
1515
"db:push": "prisma db push",
16+
"type-check": "tsc --noEmit && tsc -p tests/tsconfig.json --noEmit",
1617
"lint": "tsc --noEmit"
1718
},
1819
"dependencies": {

apps/backend/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
}
1818
},
1919
"include": ["src/**/*"],
20-
"exclude": ["node_modules", "dist"],
21-
"references": [
22-
{ "path": "./tests" }
23-
]
20+
"exclude": ["node_modules", "dist"]
2421
}

apps/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"build": "tsc && vite build",
99
"preview": "vite preview",
10+
"type-check": "tsc --noEmit",
1011
"lint": "eslint src --ext ts,tsx"
1112
},
1213
"dependencies": {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"name": "ragbase",
33
"private": true,
4+
"packageManager": "pnpm@10.20.0",
45
"type": "module",
56
"scripts": {
67
"dev": "turbo run dev",
78
"build": "turbo run build",
89
"test": "turbo run test",
910
"test:unit": "turbo run test:unit",
1011
"test:integration": "turbo run test:integration",
12+
"type-check": "turbo run type-check",
1113
"lint": "turbo run lint"
1214
},
1315
"devDependencies": {

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
},
2121
"lint": {
2222
"dependsOn": ["^lint"]
23+
},
24+
"type-check": {
25+
"dependsOn": ["^type-check"]
2326
}
2427
}
2528
}

0 commit comments

Comments
 (0)