Coding Standards for Backend Development
Here are the coding standards that everyone developing the backend should follow (Deviations from these standards can be made but they should be minimal, and should be verified by the user):
backend/ (Root folder: all imports in the code should be absolute and relative to this folder) ├── logs/ ├── <date><time>.log ├── ... ├── routers/ ├── <router-name>.py ├── ... ├── models/ ├── sql.py ├── pydantic.py ├── ... ├── utils/ ├── logger.py ├── ... ├── tests/ ├── conftest.py ├── api/ ├── test<router-name>.py ├── ... ├── unit/ ├── test_<unit-name>.py ├── ... ├── .env ├── .gitignore ├── config.py ├── main.py ├── pyproject.toml ├── README.md ├── run.sh ├── test.sh
uv sync to install dependencies.uv syncrun.sh should run the app for development.test.sh should run all or selected tests.