← スキル一覧に戻る

setup-python-project
by Silviase
⭐ 0🍴 0📅 2026年1月15日
SKILL.md
name: setup-python-project description: Bootstrap a new Python project using the OCREvaluation default layout and toolchain (uv, ruff, ty, pre-commit). Use when asked to scaffold a new Python repo, initialize standard folders, or set up uv/ruff/ty/pre-commit configs to match this repo.
Setup Python Project
Overview
Create the default Python project scaffold used in this repo: standard folders plus uv/ruff/ty/pre-commit configuration. Use the templates in assets/ and then update placeholders.
Inputs to confirm
- Project root path
- Project name for
pyproject.toml - Description and version (default
0.1.0) - Python version (default
3.12.7with>=3.12,<3.13) - Extra dependencies and whether to create
tests/
Workflow
- Create the project directory (or confirm an empty root).
- Create standard folders:
data,docs,output,sample,scripts,src, optionaltests. - Copy templates from
assets/to the project root:.python-version.gitignore.pre-commit-config.yamlpyproject.tomlREADME.mdmain.py(optional)
- Edit
pyproject.toml:- Set
project.name,description,version. - Adjust
dependencies(keeppre-commit,ruff,pytest,tyunless requested otherwise). - Update
requires-pythonif the project targets a different Python.
- Set
- Append
assets/uv-custom-indexes.tomltopyproject.tomlwhen custom uv indexes are required. - Run
uv syncto generate.venvanduv.lock. - Install hooks:
uv run pre-commit install; optionally runuv run pre-commit run --all-files. - Sanity-check tools:
uv run ruff format .,uv run ruff check .,uv run ty check src scripts.
Notes
- The pre-commit
unittesthook prints a skip message whentests/is missing. - Keep
.gitignorealigned with the standarddata/andoutput/directories.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です