pyproject-config
Configure Python projects with pyproject.toml including build system, console scripts, ruff linting, and pytest. Use when setting up a new Python project, configuring tooling, or adding entry points.
How do I install this agent skill?
npx skills add https://github.com/brojonat/llmsrules --skill pyproject-configIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides standard templates and best practices for configuring Python projects using pyproject.toml. It includes configurations for build systems, linting, and testing without introducing security risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
pyproject.toml Configuration
Standard configuration for Python projects using setuptools, ruff, and pytest.
Console Scripts
[project.scripts]
my-tool = "your_package.cli:main"
Build System (src layout)
[build-system]
requires = ["setuptools>=68.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
This enables uv pip install -e . for editable installs with a src/ layout.
Ruff
[tool.ruff]
target-version = "py313"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E203", "W503"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
Pytest
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py", "*_tests.py"]
Project Layout
.
pyproject.toml # project metadata, deps, tooling
Makefile # common tasks (run, lint, test, build)
.env.server # server env vars
src/ # application/CLI package (editable install)
cli.py # Click CLI entrypoint
server/ # FastAPI app
main.py # ASGI entrypoint
templates/ # Jinja2 templates
static/ # static assets
data/ # datasets and outputs
plots/ # generated figures
Keep a src/ layout for packages so editable installs work cleanly. Use .env.server and .env.client for local development with .env.example files alongside code.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/brojonat/llmsrules/pyproject-config">View pyproject-config on skillZs</a>