MacHu-GWU/sqlalchemy_upsert_kit-project / .claude/skills/pywf-oss-base
pywf-oss-base
FlaggedShared conventions, references, and scripts of the pywf-oss skills for pywf open-source Python libraries: setup, layout, code style, tests, user docs and the agent skills that hold API and maintenance knowledge, CI and hosting, release, dependencies, and secrets. Load it before ad-hoc work on modules, tests, or docs in such a repo, for a question about these conventions, or when unsure which pywf-oss skill fits a job.
references/03-mise.md
View on GitHub---
description: "mise as the single entry point of a repo: the mise.toml blocks, every task and what it runs, and which tasks change external services and need the user's yes. Read when unsure which mise task runs what, before running a task that changes an external service, or when adding or changing a task."
---
# mise
mise runs everything in a repo. Prefer a task over the raw command it wraps: tasks carry their dependencies (`cov` runs `inst` first).
---
## 1. `mise.toml`
| Block | What it holds |
| :--- | :--- |
| `[tools]` | The dev Python, `uv`, `claude`, and `pandoc`, installed once per machine and shared across repos |
| `[tasks.*]` | Every workflow command, listed by `mise tasks ls` with its `description`. Longer tasks are Python scripts in `.mise/tasks/`. |
| `[env]` | Secrets, loaded as in `01-secrets.md`, and `UV_PYTHON`, which makes uv use the `[tools]` Python |
Run a task with `mise run <task>`.
---
## 2. Tasks
| Task | What it does |
| :--- | :--- |
| `venv-create` / `venv-remove` | Create / delete `.venv` |
| `inst` | Create `.venv`, then `uv sync --all-extras` |
| `format` / `lint` | Format all Python code with ruff / check it with ruff and the one-import-per-statement check |
| `test` / `cov` | Run the test suite / run it with coverage, writing `htmlcov/` |
| `view-cov` | Open the coverage report |
| `build-doc` / `view-doc` | Build the Sphinx HTML into `docs/build/html` / open it |
| `notebook-to-markdown` | Convert the docs notebooks to Markdown, for AI reading |
| `export` | Regenerate `requirements*.txt` from `uv.lock` |
| `build` / `publish` | Build the wheel and sdist / upload them to PyPI |
| `release` | Create the GitHub tag and release for the current version |
| `update-github-metadata` / `setup-codecov` / `setup-readthedocs` | One-time setup of a new repo's GitHub, Codecov, and Read the Docs |
---
## 3. Tasks that change external services
`publish`, `release`, `update-github-metadata`, `setup-codecov`, and `setup-readthedocs` act on GitHub, PyPI, Codecov, or Read the Docs. Run each only after the user's yes; one yes covers one task. Never run one as a side effect of another job.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |