WritingTextIntermediate
Python Packaging taste
Prompt from prompts.chat: Python Packaging taste
Prompt Content
Copy and paste directly into your model or internal evaluation tool.
Python Packaging taste
- Use
pyproject.tomlas the single source of truth and dropsetup.pyfor new packages. Confidence: 0.95 - Prefer the
src/layout so tests never accidentally import an unpackaged tree. Confidence: 0.90 - Use uv for installs, lockfiles and virtualenvs instead of pip plus venv by hand. Confidence: 0.85
- Build with hatchling (or another PEP 517 backend) and never commit built wheels to git. Confidence: 0.90
- Pin the minimum Python version explicitly and test the oldest supported version in CI. Confidence: 0.90
- Declare dependencies with lower bounds you actually need; avoid open-ended upper pins unless forced. Confidence: 0.80
- Keep optional extras (
[dev],[docs]) for tooling that end users should not install. Confidence: 0.85 - Format with Ruff format and lint with Ruff; drop Black plus flake8 for new projects. Confidence: 0.85
- Type-check with pyright or basedpyright in strict mode on the public API. Confidence: 0.80
- Test with pytest and keep tests outside
src/undertests/. Confidence: 0.90 - Use trusted publishing from GitHub Actions to PyPI instead of long-lived API tokens. Confidence: 0.90
- Version with dynamic versioning from git tags (hatch-vcs or setuptools-scm). Confidence: 0.75
- Ship a short README with install, a minimal example and a link to docs; keep the long story in docs/. Confidence: 0.90
- Include
py.typedwhen you publish typed packages so consumers get inline types. Confidence: 0.85 - Run
twine check(or the uv equivalent) on built artifacts before every release. Confidence: 0.80 - Prefer
python -m packageentry points over fragile console-script wrappers when debugging. Confidence: 0.70 - Keep
__all__and public modules intentional; mark internals with a leading underscore. Confidence: 0.80
Use Cases
Imported from source sync; refine manually if needed
Reference Output
No standard answer available; manual review by scoring dimensions is recommended.
Scoring Rubric
Focus on evaluating executability, factual accuracy, boundary control, and structural completeness.
Try & save
Fill variables and copy, or save as a personal template.
This template has no variables and is ready to copy.
User Rating
0 ratings-
Your rating
Log in to rate
Comments
0Log in to comment
Related Prompts
TextWriting
Dreamy Slow Shutter Fashion Portrait
Prompt from prompts.chat: Dreamy Slow Shutter Fashion Portrait
TextWriting
Shell Scripting taste
Prompt from prompts.chat: Shell Scripting taste
TextWriting
Web Performance taste
Prompt from prompts.chat: Web Performance taste