Where all the models are stored 🚂
- Python 98.6%
- Mako 0.6%
- Dockerfile 0.5%
- Makefile 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| src/railroad_club | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| alembic.ini | ||
| CLAUDE.md | ||
| Dockerfile | ||
| LICENSE.txt | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
railroad-club
SQLModel ORM models and Alembic migrations for a GTFS transit feed management system.
Requirements
- Python 3.13+
- PostgreSQL
Installation
uv sync
Database Setup
DATABASE_URL="postgresql+asyncpg://user:pass@localhost/dbname" alembic upgrade head
Development
# Lint and format
ruff check . --fix
ruff format .
# Tests (moto stands in for S3; no container needed)
pytest
# Create a new migration after modifying models
DATABASE_URL="..." alembic revision --autogenerate -m "description"
# Commit (conventional commits enforced)
cz commit