Skip to main content

smelt

Your Python style guide, enforced by code.

Every team has a style guide: application code doesn't import the database, tests mirror the source tree, internals stay private, None checks are explicit. Usually it lives in a wiki or an AGENTS.md, and code review enforces it by hand. Coding agents skim it, so reviewers write the same comment again and again.

Smelt turns that guide into checks. Each convention is one line in smelt.yml, and Smelt enforces it before an edit, after it, at commit time and in CI, with a finding that says what broke and how to fix it.

The style guide in prose:

Application code must not depend on infrastructure. Use a port.

The same rule in smelt.yml:

architecture:
  layers:
    domain: {path: domain, may_depend_on: []}
    application: {path: application, may_depend_on: [domain]}
    infrastructure: {path: infrastructure, may_depend_on: [domain, application]}

rules:
  architecture/layer-boundary: error

And what an agent sees when it breaks it:

src/shop/application/checkout.py:2:42  ARC001 architecture/layer-boundary  [error]
  application must not depend on infrastructure
    from shop.infrastructure.database import SqlOrderRepository
  Allowed: application → domain
  Hint: Move what application needs into a layer it may depend on (domain), or invert
        the dependency behind an abstraction.

Why Smelt?

  • The config is the style guide. A rule runs only when smelt.yml names it, so the file is the complete, reviewable list of your conventions.
  • Architecture, tests and code style. Layers, features, package APIs, mirrored tests, test quality, typing, visibility and modeling conventions.
  • Built for agents. smelt context tells an agent the rules for a file before it writes it; --changed and --staged report only what it introduced.
  • Adoptable. A debt baseline lets an existing codebase fail only on new violations.

Get started

uv tool install smelt-cli   # Python 3.12+
smelt init                  # draft smelt.yml from your layout
smelt check                 # enforce it

Upgrading to 0.17.0? See the upgrade guide.

You want to… Command
Check the project smelt check --fail-on warning
Check only your changes smelt check --changed
Check the commit smelt check --staged --fail-on warning
Get the rules for a file before writing it smelt context src/shop/application/refunds.py --guide
Understand a finding smelt explain ARC001
Find rules you haven't decided on smelt rules --unconfigured
Accept existing findings smelt debt
Give agents the offline reference smelt skill install

Enforce it at commit time

With prek, add this to .pre-commit-config.yaml and run prek install:

repos:
  - repo: local
    hooks:
      - id: smelt-staged
        name: smelt
        entry: smelt check --staged --fail-on warning
        language: python
        additional_dependencies: [smelt-cli==0.17.0]
        pass_filenames: false
        always_run: true
        require_serial: true

Run smelt check --fail-on warning in CI. See integrations.

Documentation

Level Guide You learn
1 First check Write the first rules, read and act on findings
2 Architecture boundaries Layers, features, composition root, third-party imports
3 Tests that mirror the source Test layout and test quality rules
4 The agent loop context, changed and staged checks, hooks, CI
5 Existing codebases Debt baselines and strict policy coverage
6 Scaling the policy Package APIs, shared configs, uv workspaces

Reference: configuration, rule catalog, CLI, all docs, changelog, contributing.

Smelt analyzes source statically and never runs your code. Use it alongside tests, a type checker and Ruff. See scope and limits.

Metadata

Release files for smelt-cli 0.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smelt-cli 0.17.0
File Size Uploaded Provenance Actions
smelt_cli-0.17.0.tar.gz 1.6 MB With provenance Details for smelt_cli-0.17.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for smelt-cli 0.17.0
File Actions
smelt_cli-0.17.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for smelt_cli-0.17.0-py3-none-win_amd64.whl
smelt_cli-0.17.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for smelt_cli-0.17.0-py3-none-musllinux_1_2_x86_64.whl
smelt_cli-0.17.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for smelt_cli-0.17.0-py3-none-musllinux_1_2_aarch64.whl
smelt_cli-0.17.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for smelt_cli-0.17.0-py3-none-manylinux_2_28_x86_64.whl
smelt_cli-0.17.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for smelt_cli-0.17.0-py3-none-manylinux_2_28_aarch64.whl
smelt_cli-0.17.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for smelt_cli-0.17.0-py3-none-macosx_11_0_arm64.whl
smelt_cli-0.17.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for smelt_cli-0.17.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 36.0 MB

Release files / smelt_cli-0.17.0.tar.gz

Download URL smelt_cli-0.17.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
07576faf48dd83be4b10e663ae6436e63a184135e83fb933afa09e720309623c
BLAKE2b-256 checksum
How to use checksums
8e93aa3fa5c47200fb22e252f9d88f0aa8740e0c2959ccbb56e40ea20d726969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-win_amd64.whl

Download URL smelt_cli-0.17.0-py3-none-win_amd64.whl
Size 5.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5f23300f2ceb2e35536a0fe4829a4b59727038dc6471318f6f75f65a93cd4c60
BLAKE2b-256 checksum
How to use checksums
697cd5a20856bb52f23b66a1ddadc9153302d760e2fb905c560605bc8a84e653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-musllinux_1_2_x86_64.whl

Download URL smelt_cli-0.17.0-py3-none-musllinux_1_2_x86_64.whl
Size 5.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7c7df245369b5e54149991c71283c1358e471b7760160cd3b4d16a790a1d79d4
BLAKE2b-256 checksum
How to use checksums
9b75ba22db680e8e68351904423efeeb303474ce240886ac446cf0ac5efae970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-musllinux_1_2_aarch64.whl

Download URL smelt_cli-0.17.0-py3-none-musllinux_1_2_aarch64.whl
Size 4.7 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0a0e5860f02bbe8a1b5aec4ca779d9cd8e68a1587436c34cbdcb6416daedc8d0
BLAKE2b-256 checksum
How to use checksums
d0e2941db75379536b4d301e714673d547d5e1fb899fd9808f11b9cb560b710e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-manylinux_2_28_x86_64.whl

Download URL smelt_cli-0.17.0-py3-none-manylinux_2_28_x86_64.whl
Size 5.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
113caad0722c2688a25e45699d39ad9002831bd02588616460e7c387bb29e1ea
BLAKE2b-256 checksum
How to use checksums
a10fb655445ff5437be8d0e6a14600bed76a17fa34060f4e69050184455adb10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-manylinux_2_28_aarch64.whl

Download URL smelt_cli-0.17.0-py3-none-manylinux_2_28_aarch64.whl
Size 4.7 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
101340fb6f23253be4d87920950c7963f1a05fa40e4340bd6197c23a0bbfd73b
BLAKE2b-256 checksum
How to use checksums
e5431069ae8ebace9fb1f97001d997b0f3e7c64ce8d3bc3f4362634ea62b1f1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-macosx_11_0_arm64.whl

Download URL smelt_cli-0.17.0-py3-none-macosx_11_0_arm64.whl
Size 4.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dcc8f4c031b9b7917cc2ce3a767a2bac47d00891e5fce60fa8c784ae992dd7e4
BLAKE2b-256 checksum
How to use checksums
0b588907a1e81316d70ab105792fdc2f73c2feccce1dc75317a9217f0a7dee9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / smelt_cli-0.17.0-py3-none-macosx_10_12_x86_64.whl

Download URL smelt_cli-0.17.0-py3-none-macosx_10_12_x86_64.whl
Size 4.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b17905815a56c5c15287951d4f9e99db713e4565b26ca5cd02efc0d461d78d54
BLAKE2b-256 checksum
How to use checksums
4016cd6423be01f76789883f5ee03c3daa777b34daa4db4927eaa87a56a6d72f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for smelt-cli 0.17.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for smelt_cli-0.17.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.0 This release

8 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page