Skip to content

Commit ce7f89a

Browse files
committed
chore: run formatters
1 parent 17f253a commit ce7f89a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+5617
-3221
lines changed

.github/workflows/format-check.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Format Check
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
backend-format:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
- name: Install uv
17+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
18+
- name: Sync dependencies
19+
working-directory: backend
20+
run: uv sync
21+
- name: Check formatting
22+
working-directory: backend
23+
run: uv run ruff format --check .
24+
25+
frontend-format:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: "20"
33+
- name: Install pnpm
34+
run: npm install -g pnpm
35+
- name: Install dependencies
36+
working-directory: frontend_omni
37+
run: pnpm install
38+
- name: Check formatting
39+
working-directory: frontend_omni
40+
run: pnpm run format:check

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ venv/
55
uv.lock
66
.env
77
.vscode/
8-
.github/
98
.pytest_cache/

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies = [
1515
]
1616

1717
[dependency-groups]
18-
dev = ["pytest", "pytest-asyncio"]
18+
dev = ["pytest", "pytest-asyncio", "ruff"]
1919

2020
[tool.uv]
2121
package = true

backend/tests/test_authentication.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ def test_signup_password_creation_failure(client):
236236
user_store.get_user_by_email.return_value = None # No existing user
237237
new_user = User(id="3", email="testuser@example.com", full_name="Test User")
238238
user_store.create_user.return_value = new_user
239-
user_store.set_user_password.side_effect = ValueError("User not found") # Password setting fails
239+
user_store.set_user_password.side_effect = ValueError(
240+
"User not found"
241+
) # Password setting fails
240242
user_store.delete_user.return_value = None
241243

242244
payload = {

backend/tests/test_user.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def client():
3737

3838

3939
class TestSimpleUserModule:
40-
4140
def test_init_missing_session_dependency(self):
4241
"""Test that initialization fails when session module is missing"""
4342
dependencies = ModuleDependencies(modules={})

backend/tests/test_user_settings_store.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ def store(self, dependencies):
317317

318318

319319
class TestSQLAlchemyUserSettingsStore(TestSQLAlchemyUserSettingsStore):
320-
321320
@pytest.fixture
322321
def store(self, dependencies):
323322
"""Create a test store instance with patched _table_to_user_settings method"""

frontend_omni/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/shadcn/**

frontend_omni/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pnpm dev
1111

1212
The frontend is now available under http://localhost:5173
1313

14-
1514
## Naming Conventions
1615

1716
**React Compionents**: PascalCase

frontend_omni/index.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/modai.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>modAI Chat</title>
8+
</head>
39

4-
<head>
5-
<meta charset="UTF-8" />
6-
<link rel="icon" type="image/svg+xml" href="/modai.svg" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>modAI Chat</title>
9-
</head>
10-
11-
<body>
12-
<div id="root"></div>
13-
<script type="module" src="/src/main.tsx"></script>
14-
</body>
15-
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
1614
</html>

frontend_omni/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"build": "tsc -b && vite build",
99
"lint": "eslint .",
10+
"format:check": "prettier --check .",
1011
"preview": "vite preview",
1112
"test": "vitest run"
1213
},
@@ -72,6 +73,7 @@
7273
"eslint-plugin-react-refresh": "^0.4.20",
7374
"globals": "^16.3.0",
7475
"jsdom": "^27.0.0",
76+
"prettier": "^3.3.3",
7577
"tailwind-scrollbar": "^4.0.2",
7678
"tw-animate-css": "^1.3.7",
7779
"typescript": "~5.8.3",

0 commit comments

Comments
 (0)