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.20.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.20.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.20.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.20.0
File Size Uploaded Provenance Actions
smelt_cli-0.20.0.tar.gz 1.8 MB With provenance Details for smelt_cli-0.20.0.tar.gz

Built distributions (wheels)

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

Total release size: 40.1 MB

Release files / smelt_cli-0.20.0.tar.gz

Download URL smelt_cli-0.20.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
2bfcd96890bbf4e35a73b445901bd76ab3480c8ebfbb876f36d8eb076db3a897
BLAKE2b-256 checksum
How to use checksums
9abfa639bc4c46fbe9fb5d0bea06512c917db8c42174f37ce2775247051b0b2e
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-win_amd64.whl
Size 5.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c12e320e1f67ff3c20b5c8d7f0d25d62ecbaddd0b61a87487377ba251d02b568
BLAKE2b-256 checksum
How to use checksums
6fb38086d2522ca145b0c14b51a4df213f4d1ea50fd40f9c5eafcd6b91233fbc
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-musllinux_1_2_x86_64.whl
Size 5.7 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
411501a02f33a6907489cc9276ca5381d73fa4f62b7584bf7dbd87bad46334a4
BLAKE2b-256 checksum
How to use checksums
666ca482a562359ec866dcc78486f5ef71d1787e9b05911629d81073ed9616c7
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-musllinux_1_2_aarch64.whl
Size 5.3 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
57143a600c5103733459a34379cc290faa4b881bc1fee8e95dc6089c48a59925
BLAKE2b-256 checksum
How to use checksums
9983533ca5a69079a2bfb581ae61824c04c66cf8695d0d235058e3017e6de962
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-manylinux_2_28_x86_64.whl
Size 5.6 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f00c1548cff9aad8dc753e5fd65e5aeef8f3b4751f00811127d30df5d4f18f43
BLAKE2b-256 checksum
How to use checksums
b5e19b0d22ff1c11a706cc32bdced04cc99eb1c828ca1b5db6c56d5d9c27302f
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-manylinux_2_28_aarch64.whl
Size 5.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a49260031f019b5f0c724ebbb03d3f055d54e7a47772f44a5f3a533ed0090c4d
BLAKE2b-256 checksum
How to use checksums
c2a66671577375593a5cbde105a9b27fe11f1050faad31a82343a47613c77d68
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-macosx_11_0_arm64.whl
Size 5.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8b004b399efe2becb6215740d97cee35a54d629d32067e14a8e65ae671b87070
BLAKE2b-256 checksum
How to use checksums
425f380797cb7a88bf08c857c6a3f9418ab5ed31beba64ba67b031de41956b66
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 27, 2026.

Transparency log

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

Download URL smelt_cli-0.20.0-py3-none-macosx_10_12_x86_64.whl
Size 5.5 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0936780831ef6dad320c298dac32736870c0ff1118a9807038d33cfb137d891a
BLAKE2b-256 checksum
How to use checksums
0df97c61fe0e1b45eb95633cc88759d85b74d8790877eb97992c775cbc9fc658
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 27, 2026.

Transparency log

Security for smelt-cli 0.20.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.20.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 27, 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.20.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