src/: application package onlysrc/devto_mirror/ai_optimization/: optional AI modules
scripts/: runnable entrypoints + helpers (legacy, move code out opportunistically)tests/:unittestassets/: templates/static inputs (edit these, not generated root artifacts)docs/: documentation (doc-specific rules live indocs/AGENTS.md)
-
Prefer Makefile targets when available:
make installmake ai-checksmake testmake security
-
If there is no Makefile target for a task, use
uv run <tool>.
- Lefthook is configured in
lefthook.ymland may be invoked indirectly by Makefile targets. - Use
make lint/make ai-checks.
-
Install deps:
- Prefer
make install. - Otherwise use
uv sync --locked --group dev.
- Prefer
-
Update lockfile ONLY when dependencies changed:
- run
uv lock - then run
make ai-checks
- run
- In GitHub Actions, NEVER run
uv run make <target>. - Always run
make <target>.
- Required:
DEVTO_USERNAME - Site URL (one required):
SITE_DOMAINorGH_USERNAME - Optional:
DEVTO_KEY,VALIDATION_MODE,FORCE_FULL_REGEN,ROOT_SITE_PAT