Skip to content

Repo setup : Adding CI and pre-commit #40

@nishika26

Description

@nishika26

Describe the current behavior

The repository has no CI pipeline or pre-commit hooks configured. There are no automated checks on pull requests or pushes,
meaning code formatting, linting, test failures, and migration errors can go undetected until manual review.

Describe the enhancement you'd like

  • Add a .pre-commit-config.yml at the repo root with hooks for black (formatting), basic file hygiene checks (check-toml,
    check-yaml, end-of-file-fixer, trailing-whitespace)
  • Add a GitHub Actions CI workflow (.github/workflows/continuous_integration.yml) that runs on pushes and PRs to main, covering:
    • Spinning up a Postgres service for test isolation
    • Installing dependencies via uv
    • Running Alembic migrations
    • Running pre-commit checks across all files
    • Running the test suite

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions