|
Download CONTRIBUTING.md from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/CONTRIBUTING.md
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/CONTRIBUTING.md
-
curl -L -o CONTRIBUTING.md https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/CONTRIBUTING.md
1.52 kB
| # Contributing | |
| ## Setup | |
| Follow the README quick start, then `pip install pre-commit ruff==0.14.0 && pre-commit install`. | |
| ## Before you push | |
| | Check | Command | | |
| |---|---| | |
| | Backend lint | `ruff check coworker triage reports qa` | | |
| | Backend tests | `architecture/.venv/Scripts/python -m pytest coworker/tests triage/tests` | | |
| | Web type-check, lint, build | `npm --prefix web run build` | | |
| | Web unit tests | `npm --prefix web test` | | |
| | Web end-to-end | `npm --prefix web run e2e` (starts the practice pod and a backend itself) | | |
| CI (`.github/workflows/ci.yml`) runs all but the end-to-end tests on every push and pull request, plus dependency | |
| scans. `image.yml` builds and smoke-tests the container on `main`. | |
| ## Conventions | |
| - One concern per commit; the message says what changed and why. | |
| - Backend: every outbound HTTP call goes through `platform/egress.py`; every new route declares its permission with | |
| `require(...)`; request bodies are `Strict` pydantic models; user-facing errors are `ApiError(status, CODE, sentence)`. | |
| - If you change an API schema, run `npm --prefix web run gen:api` (a backend test fails on drift). | |
| - Web: user-facing words are plain English (no codes or file names); map new error codes in `web/src/api/errors.ts`. | |
| - Secrets never go in code, tests or commits. Test data uses obviously fake values. | |
| - Legacy identifiers (`FPT_*` settings, `fpt_csrf`, `patch-coworker` image and bucket names) stay as they are: | |
| renaming them breaks existing deployments. | |