Skip to content

Commit f781312

Browse files
amosttAygentic
andcommitted
fix(ci): add required env vars to lint-backend workflow
Mypy needs to import app modules during analysis, which requires valid Settings configuration. Added dummy env vars for: - PROJECT_NAME, FIRST_SUPERUSER (required fields) - DATABASE_URL with postgresql+psycopg:// scheme for psycopg v3 - All Supabase and Redis config values This matches the pattern used in test-backend.yml and generate-client.yml workflows. Related to CUR-29 🤖 Generated by Aygentic Co-Authored-By: Aygentic <noreply@aygentic.com>
1 parent f877e3f commit f781312

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/lint-backend.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,17 @@ jobs:
3030
- name: Run linters
3131
run: uv run bash scripts/lint.sh
3232
working-directory: backend
33+
env:
34+
# Required env vars for Settings class initialization during mypy analysis
35+
PROJECT_NAME: CurriculumExtractor
36+
SECRET_KEY: just-for-linting
37+
FIRST_SUPERUSER: admin@example.com
38+
FIRST_SUPERUSER_PASSWORD: just-for-linting
39+
DATABASE_URL: postgresql+psycopg://postgres:password@localhost:5432/app
40+
SUPABASE_URL: https://dummy.supabase.co
41+
SUPABASE_ANON_KEY: dummy-anon-key
42+
SUPABASE_SERVICE_KEY: dummy-service-key
43+
REDIS_PASSWORD: dummy-redis-password
44+
REDIS_URL: redis://:dummy@localhost:6379/0
45+
CELERY_BROKER_URL: redis://:dummy@localhost:6379/0
46+
CELERY_RESULT_BACKEND: redis://:dummy@localhost:6379/0

0 commit comments

Comments
 (0)