Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
7
- **Do** match the interpreter requirement declared in `pyproject.toml` (Python ≥ 3.12) and install `requirements.txt` plus `requirements-dev.txt` before running tools.
Sign in to like and favorite skills
pyproject.toml (Python ≥ 3.12) and install requirements.txt plus requirements-dev.txt before running tools.PYTHONPATH=. set to keep imports functional (for example PYTHONPATH=. ./.venv/bin/pytest tests/unittest/test_fix_json_escape_char.py -q)..pr_agent.toml or files under pr_agent/settings/ instead of hard-coding values.PR-Agent automates AI-assisted reviews for pull requests across multiple git providers.
pr_agent/agent/ orchestrates commands (review, describe, improve, etc.) via pr_agent/agent/pr_agent.py.pr_agent/tools/ implements individual capabilities such as reviewers, code suggestions, docs updates, and label generation.pr_agent/git_providers/ and pr_agent/identity_providers/ handle integrations with GitHub, GitLab, Bitbucket, Azure DevOps, and secrets.pr_agent/settings/ stores Dynaconf defaults (prompts, configuration templates, ignore lists) respected at runtime; .pr_agent.toml overrides repository-level behavior.tests/unittest/, tests/e2e_tests/, and tests/health_test/ contain pytest-based unit, end-to-end, and smoke checks.docs/ holds the MkDocs site (docs/mkdocs.yml plus content under docs/docs/); overrides live in docs/overrides/..github/workflows/ defines CI pipelines for unit tests, coverage, docs deployment, pre-commit, and PR-agent self-review.docker/ and the root Dockerfiles provide build targets for services (github_app, gitlab_webhook, etc.) and the test stage used in CI.pip install -r requirements.txt; add development tooling via pip install -r requirements-dev.txt.PYTHONPATH=. ./.venv/bin/pytest tests/unittest/test_fix_json_escape_char.py -q.PYTHONPATH=. ./.venv/bin/pytest tests/unittest -v.python -m pr_agent.cli --pr_url <https://host/org/repo/pull/123> review.docker build -f docker/Dockerfile --target test . (loads dev dependencies and copies tests/).mkdocs-material, mkdocs-glightbox): mkdocs serve -f docs/mkdocs.yml for previews and mkdocs gh-deploy -f docs/mkdocs.yml for publication.pyproject.toml (line-length = 120, Pyflakes plus flake8-bugbear checks, and isort ordering). Keep imports grouped as isort would produce and prefer double quotes for strings..pre-commit-config.yaml) enforces trailing whitespace cleanup, final newlines, TOML/YAML validity, and optional isort; run pre-commit run --all-files before submitting patches if installed.pr_agent/settings/ are TOML; preserve formatting, section order, and comments when editing prompts or defaults.docs/ uses MkDocs conventions (YAML front matter absent; rely on heading hierarchy already in place).tests/unittest/ for unit logic, tests/e2e_tests/ for integration flows, tests/health_test/ for smoke coverage).pr_agent/algo/, pr_agent/tools/, or provider adapters; use parameterized tests where existing files already do so.PYTHONPATH=. when invoking pytest from the repository root to avoid import errors.TOKEN_GITHUB, TOKEN_GITLAB, BITBUCKET_USERNAME, BITBUCKET_PASSWORD) and may take several minutes; run them only when credentials and sandboxes are configured.tests/health_test/main.py) exercises /describe, /review, and /improve; update expected artifacts if prompts change meaningfully.CONTRIBUTING.md: keep changes focused, add or update tests, and use Conventional Commit-style messages (e.g., fix: handle missing repo settings gracefully).feature/<name> or fix/<issue> patterns for substantial work.build-and-test, code-coverage, docs-ci) succeed locally or in draft PRs before requesting review; reproduce failures with the documented commands above..pr_agent.toml, pr_agent/settings/*.toml) together when behavior changes.tests/e2e_tests/test_github_app.py and tests/health_test/main.py); do not persist them in code or configuration files..pr_agent.toml or by supplying repository-specific Dynaconf files; keep overrides minimal and documented inside the PR description.SECURITY.md before disclosing vulnerabilities and follow its contact instructions for responsible reporting.