follow-python-conventions

Tenzir Python coding standards and tooling workflow. Use when editing Python code, running `uv`, `ruff`, `mypy`, or `pytest`, working with `pyproject.toml` or `uv.lock`, or setting up a Tenzir Python project. Also use when the user asks how to structure a new Tenzir Python project, set up linting, or asks about Python best practices in the Tenzir context.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "follow-python-conventions" with this command: npx skills add tenzir/skills/tenzir-skills-follow-python-conventions

Follow Python Conventions

Apply the standard Tenzir Python toolchain and coding conventions.

Required Tools

All Tenzir Python projects use:

  • uv for dependency management and virtual environments
  • ruff for linting and formatting
  • mypy for static type checking
  • pytest for testing

Default Libraries

Prefer these libraries unless the repository already establishes a different stack:

  • pydantic for models and validation
  • FastAPI for REST APIs
  • Click for CLIs

Quality Gates

Run this sequence before committing or releasing:

uv run ruff check \
  && uv run ruff format --check \
  && uv run mypy \
  && uv run pytest \
  && uv build

Conventions

  • Target Python 3.12 or later.
  • Fully type all public surfaces.
  • Avoid Any unless there is a concrete reason it cannot be removed.
  • Keep __init__.py files empty.
  • Use absolute imports from the package root.
  • Use snake_case for modules, functions, and variables; PascalCase for classes; CONSTANT_CASE for constants.
  • Use kebab-case for CLI flags.

Reference Files

Load only the configuration reference you need:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

review-changes

No summary provided by upstream source.

Repository SourceNeeds Review
General

tenzir-ship

No summary provided by upstream source.

Repository SourceNeeds Review
General

create-pull-requests

No summary provided by upstream source.

Repository SourceNeeds Review
General

commit-changes

No summary provided by upstream source.

Repository SourceNeeds Review