Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/lint_backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint Backend

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
lint-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
enable-cache: true
- name: Run Ruff Format With Diff
run: uv run ruff format src --check --diff
working-directory: backend
- name: Run Ruff Lint
run: uv run ruff check src
working-directory: backend
28 changes: 28 additions & 0 deletions .github/workflows/lint_frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint Frontend

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
lint-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
working-directory: frontend
- name: Run lint
run: pnpm run lint
working-directory: frontend
28 changes: 28 additions & 0 deletions .github/workflows/test_backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test Backend

on:
push:
branches:
- "*"
pull_request:
branches:
- main

jobs:
test-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
enable-cache: true
- name: Run tests
run: uv run pytest
working-directory: backend
25 changes: 0 additions & 25 deletions backend/.env.example

This file was deleted.

4 changes: 3 additions & 1 deletion backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def custom_generate_unique_id(route: APIRoute) -> str:
app.add_middleware(
CORSMiddleware,
allow_origins=[
str(origin).strip("/") for origin in settings.BACKEND_CORS_ORIGINS
# str(origin).strip("/") for origin in settings.BACKEND_CORS_ORIGINS
"*"
],
allow_credentials=True,
allow_methods=["*"],
Expand All @@ -31,3 +32,4 @@ def custom_generate_unique_id(route: APIRoute) -> str:

app.include_router(api_router, prefix=settings.API_V1_STR)
add_pagination(app)

3 changes: 0 additions & 3 deletions frontend/.env.example

This file was deleted.

6 changes: 3 additions & 3 deletions frontend/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"enabled": true
},
"files": {
"ignore": ["node_modules", "src/routeTree.gen.ts", "src/components/ui"]
"ignore": ["node_modules", "src/routeTree.gen.ts", "src/components/ui", "src/client/*"]
},
"linter": {
"enabled": true,
"ignore": ["src/components/ui"],
"ignore": ["src/components/ui", "src/client/*"],
"rules": {
"recommended": true,
"suspicious": {
Expand All @@ -25,7 +25,7 @@
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100,
"ignore": ["src/components/ui", "src/assets/*"]
"ignore": ["src/components/ui", "src/client/*", "src/assets/*"]
},
"javascript": {
"formatter": {
Expand Down
Loading