بنقرة واحدة
sp-recommends
Review code quality and packaging usuing sp-repo-review for Scientific Python projects
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review code quality and packaging usuing sp-repo-review for Scientific Python projects
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when dropping a Python version from a project
Use when exploring, triaging, or categorizing all of a repository's GitHub issues, like finding verifiable bugs or grouping issues by topic
Use when a branch and PR is requested explicitly
Use when user asks to secure a repo's CI
Add a minimum version test job to a noxfile
| name | sp-recommends |
| description | Review code quality and packaging usuing sp-repo-review for Scientific Python projects |
| license | BSD-3-Clause |
This skill uses the sp-repo-review tool and helps users address common issues.
To use this skill, you need uv (specifically, the uvx runner that uv
ships with).
Look for some basic things that repos should be doing, and report to the user if needed:
pyproject.toml.pre-commit-config.yamlThese are recommendations from the Scientific Python guide that don't have automated checks. Apply these first:
uv|virtualenv as the default backend (or uv only)FORCE_COLOR: 3 or --forcecolor for color output. Don't worry aboud changing it if already set.re-actors/alls-green for auto-merge support.github/release.yml for changelog generationbuild[uv] as the build frontend for faster buildsvalidate-pyproject, check-jsonschema)If there is no [dependency-groups] section (described in PEP 723) in
pyproject.toml, you should see if there are developer-focused extras
([project.optional-dependencies]) that can be moved, like docs, tests, or
dev. For dependency-groups, one can reference another with an inline table,
like dev = [{ include-group = "test" }]. It's quite common to want the dev
group to be built from other groups.
All mentions of developer extras like [tests], [docs], and [dev] need to
be converted to --group tests and the like. Most tools have integrated
support for dependency groups in their configuration, like tox and
cibuildwheel. Nox supports --group if pip/uv is new enough, which is probably
fine.
Run the tool to see what recommendations apply:
# Get structured JSON output for easier parsing
uvx "sp-repo-review[cli]" --format json | jq -r '.checks | to_entries[] | select(.value.result == false) | "\(.key): \(.value.description)"'
# Or see the human-readable output
uvx --with "sp-repo-review[cli]" sp-repo-review --show err .
Focus on checks with result: false - these need fixes. Checks with empty
result and skip_reason are skipped because a prerequisite failed (fix the
prerequisite first).
Only fix things that are fairly easy, and report any harder failures to the user.
A few notes to keep in mind with certain issues:
uvx --from "sp-repo-review[cli]" sp-ruff-checks
If the user is using "ALL", then this suggests some optional ignores that are
just sometimes needed.
An example dependabot file is in assets/dependabot.yml.
An example release file is in assets/release.yml.
If you add a dependencies at the top, remember to use nox.needs_version's
version as the minimum version there.
After making changes, verify:
# Run the full check
uvx "sp-repo-review[cli]" --show err
# Run the pre-commit checks
prek -a --quiet