Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Genkit Python

Read `.agents/skills/contributing-to-genkit-python/SKILL.md` before adding or changing anything a user imports, calls, passes in, or gets back, in core or a plugin. Its `references/` directory covers plugin layout, generated wire types, PR descriptions, and running the Dev UI on a shared machine.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wording only covers authors changing the public surface, so a reviewing agent, or an author fixing internals, can skip the skill. Its PR-description, error-status and import rules apply to every change.

Suggested change
Read `.agents/skills/contributing-to-genkit-python/SKILL.md` before adding or changing anything a user imports, calls, passes in, or gets back, in core or a plugin. Its `references/` directory covers plugin layout, generated wire types, PR descriptions, and running the Dev UI on a shared machine.
Read `.agents/skills/contributing-to-genkit-python/SKILL.md` before writing or reviewing a change in core or a plugin, especially anything a user imports, calls, passes in, or gets back. Its `references/` directory covers plugin layout, generated wire types, PR descriptions, and running the Dev UI on a shared machine.


## Checks

Run these from the repo root before opening a PR:

- `just lint`: format with `ruff` and run `ty`, `pyrefly`, and `pyright`
- `just test`: run `pytest`
- `just check`: verify workspace consistency (versions, naming, deps)
- `./bin/check_license`: check Apache-2.0 headers
Comment on lines +9 to +12

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uv sync doesn't install just, so agents in a sandbox with only uv (such as genkit-bot) get "command not found" here. Adding rust-just>=1.59,<2 to the root dev dependency group and running uv lock puts just in .venv, so these work anywhere uv does:

Suggested change
- `just lint`: format with `ruff` and run `ty`, `pyrefly`, and `pyright`
- `just test`: run `pytest`
- `just check`: verify workspace consistency (versions, naming, deps)
- `./bin/check_license`: check Apache-2.0 headers
- `uv run just lint`: lint-fix and format with `ruff`, then run `ty`, `pyrefly`, and `pyright`
- `uv run just test`: run `pytest`
- `uv run just check`: verify workspace consistency (versions, naming, deps)
- `./bin/check_license`: check Apache-2.0 headers and dependency licenses (needs Go; installs `addlicense` on first run)


PR titles use Conventional Commits, max 120 chars (`.github/commitlint.config.js`).
Loading