# Repository Guidelines ## Project Structure & Module Organization Baserow is a monorepo. Core Django code lives in `backend/src`, shared backend tests in `backend/tests`, and the main Nuxt app in `web-frontend/` (`modules/`, `server/`, `test/`, `stories/`). Paid extensions mirror that layout in `premium/backend`, `premium/web-frontend`, `enterprise/backend`, and `enterprise/web-frontend`. End-to-end coverage lives in `e2e-tests/`. Product and contributor docs are in `docs/`, while deployment recipes are under `deploy/`. ## Build, Test, and Development Commands Use `just` from the repo root; it wraps the backend and frontend workflows consistently for local and Docker setups. - `just init` installs dependencies and creates `.env.local`. - `just dev up` starts the local stack; `just dc-dev up -d` runs the Docker dev environment. - `just b test -n=auto` runs backend pytest suites in parallel. - `just b test tests/baserow/core/notifications/utils.py` to test a specific file. - `just f test` runs frontend Vitest suites. - `just lint` runs both backend and frontend linters; `just fix` applies auto-fixes. - `just b run pre-commit run --files $(git diff --name-only HEAD)` lints only the files you've touched on your branch (staged + unstaged); use `origin/develop...HEAD` instead of `HEAD` to scope to the whole branch. See `docs/development/code-quality.md` for details. - `just b migrate` runs Django migrations. For direct package-manager use, backend commands run through `uv` and frontend commands through `yarn`. ## Coding Style & Naming Conventions Python targets Python 3.14, uses 4-space indentation, and is formatted and linted with Ruff (`just b lint`, `just b fix`) with an 88-character line length. Follow existing Django app/module naming and keep new tests in `test_*.py` or `*_test.py` files. Frontend code uses ESLint, Stylelint, and Prettier (`just f lint`, `just f fix`); SCSS should follow BEM-style naming already used in `web-frontend/modules`. Put frontend styles in a dedicated SCSS file and import it through the appropriate SCSS bundle; do not add `