Skip to content

Latest commit

 

History

History
77 lines (63 loc) · 3.33 KB

File metadata and controls

77 lines (63 loc) · 3.33 KB

Repository Guidelines

Repository layout

The git root is the top-level DatasetGateway/ directory. Orient yourself here before doing anything else — do not assume your working directory is the repo root.

DatasetGateway/              ← git root
├── README.md             ← project overview, quick-start, env vars
├── CLAUDE.md
├── AGENTS.md             ← this file
├── .gitignore
├── docs/                 ← architecture, API reference, manuals
│   ├── admin-manual.md
│   ├── architecture.md
│   ├── cave-auth-endpoints.md
│   ├── clio-support.md
│   ├── implemented-plan.md
│   └── user-manual.md
└── dsg/          ← Django project (the only Python package)
    ├── pyproject.toml    ← build config, dependencies, pixi config
    ├── pixi.lock
    ├── manage.py
    ├── Dockerfile
    ├── scripts/          ← setup wizard, serve, deploy scripts
    ├── dsg/      ← Django settings package
    ├── core/             ← shared models, middleware
    ├── cave_api/         ← CAVE-compatible auth endpoints
    ├── auth_api/         ← Clio/neuprint auth endpoints
    ├── ngauth/           ← Neuroglancer GCS token endpoints
    ├── scim/             ← SCIM 2.0 provisioning
    └── web/              ← browser login/admin UI

Important: All Python code, tests, and the pixi environment live under dsg/. Run pixi commands from that directory. The top-level DatasetGateway/ contains documentation and repo-level config only.

Commands

cd dsg
pixi install                              # create/update environment
pixi run python manage.py check           # verify Django loads
pixi run -e dev python -m pytest          # run tests (dev environment)
pixi shell                                # interactive shell in env

Conventions

  • Follow the shared user-level commit protocol in /Users/katzw/GitHub/AGENTS.md.
  • Run tests after making changes if the project has tests.
  • If your changes add, remove, or rename files/directories shown in the "Repository layout" tree above, update that tree to match.

Code Style

Reference Material

This project uses codebase-assistant for reference codebases.

When you need information about related systems, consult in this order:

  1. In-repo documentation (any docs already in this project)
  2. Generated docs at /Users/katzw/GitHub/codebase-assistant/codebases/CAVE/generated-docs/, /Users/katzw/GitHub/codebase-assistant/codebases/tos-ngauth/generated-docs/
  3. Source code at /Users/katzw/GitHub/codebase-assistant/codebases/CAVE/repos/, /Users/katzw/GitHub/codebase-assistant/codebases/tos-ngauth/repos/
  4. Papers/specs at /Users/katzw/GitHub/codebase-assistant/codebases/CAVE/papers/, /Users/katzw/GitHub/codebase-assistant/codebases/tos-ngauth/papers/ — only if generated docs don't cover it

Available codebases

  • CAVE — Connectome Annotation Versioning Engine - A system of microservices for collaborative neuroscience annotation — 24 repos
  • tos-ngauth — Terms of Service and ngauth service — 1 repos