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.21.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.21.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.21.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.21.0
File Size Uploaded Provenance Actions
smelt_cli-0.21.0.tar.gz 1.9 MB With provenance Details for smelt_cli-0.21.0.tar.gz

Built distributions (wheels)

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

Total release size: 40.7 MB

Release files / smelt_cli-0.21.0.tar.gz

Download URL smelt_cli-0.21.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f782474d52dc979150f75e8fd1a242ba21df328f2b5b8e8d79c44f68fa74abed
BLAKE2b-256 checksum
How to use checksums
4fe777fa49d617c37407c59a93084a6889635e29d94e85876261ec3b7cc4a510
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.0-py3-none-win_amd64.whl
Size 5.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
76fcef7adc96e13e0ec40a23eda53909b9b7ff285a8019df9c4a7b946f863dce
BLAKE2b-256 checksum
How to use checksums
d30414b84cb26d0980649e7960e1fefa504cd53404803f4583f54bdab6466c6b
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.0-py3-none-musllinux_1_2_x86_64.whl
Size 5.8 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
699277f39b5d9066a525e9b88f8412d130f7939b931ce67115e7019acaa1595e
BLAKE2b-256 checksum
How to use checksums
07fbbbac8724c8fe5cdb92794d6c3ce3b5e391c30d5f3a28e186701c86a346bb
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.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
3058739da1e202f8f9d07fcc44aadb3cf4e3d9ca7fb9a945c93ac911e1536052
BLAKE2b-256 checksum
How to use checksums
5f034d59ed1725cbebe2ad201c964b4eb6ffd3e79cffbe5713df4132ad242a9a
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.0-py3-none-manylinux_2_28_x86_64.whl
Size 5.7 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
011e4331ac36b5323b87894665946c008ee1f1f92a22a7c2be67df6ed4a3e87a
BLAKE2b-256 checksum
How to use checksums
e25ee5b3475b721336c82cc20bc246b223e781883be932fbf428feaa7b0894c0
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.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
eaede2e27ad88ef57fde98b6f861d847462d24d18b7c08b40565d93854537625
BLAKE2b-256 checksum
How to use checksums
fa172b3f361d4447ed4db893e536b82b39d3a5ea2c6736eafebde013071dce0e
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.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
ab859d0fc4073b42d83694ba1d8ed81ce29add43ee2d62387bf8a5da25203b71
BLAKE2b-256 checksum
How to use checksums
73e152a02a18df8050a9ab6838e3deebf57e96e1f90a550c8224db4b1aa4fdcb
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 28, 2026.

Transparency log

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

Download URL smelt_cli-0.21.0-py3-none-macosx_10_12_x86_64.whl
Size 5.6 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
02539dfa5911cfb0077522b4ebe4a9e32a6405431054b0361d65a8ac8a8abd14
BLAKE2b-256 checksum
How to use checksums
72b415286bc4aecada59f783ecdda328b310b43f3b9f310cdc0d0ce6c7c2cb77
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 28, 2026.

Transparency log

Security for smelt-cli 0.21.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.21.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 28, 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.21.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