Skip to main content
Incomplete provenance

2 of 6 release files were uploaded without provenance metadata. View details.

smelt

Smelt is a static checker for Python codebases maintained by people and coding agents. Describe your architecture and adopt source and test conventions in smelt.yaml; Smelt turns those decisions into actionable checks that can run locally, in pre-commit and in CI.

Use it both as architecture as code and as an executable style guide: agents can inspect the policy before editing, check their changes, and iterate on findings before the same project-wide checks run in CI.

What Smelt supports

Area Examples Learn more
Architecture Layer and feature boundaries, third-party dependencies, cycles, composition roots, wiring, and coverage of production code by policy Architecture
Package contracts Required modules and public entry points; checks for imports of private implementation modules Package contracts
Source conventions Package-scoped import styles, module names and headers, public-first ordering, internal helpers, and selected readability checks Source conventions
Test conventions Mirrored test paths and opt-in reviews of outcomes, mocks, private access, async awaits, waits, and test-only public members Test policies
Agent and CI workflows Policy briefings, staged and changed checks, JSON, GitHub annotations, SARIF, pre-commit and debt baselines Integrations, agent workflow, CLI and reports, adoption

The rule catalog lists each check, its activation and default severity. Most rules are opt-in; a declared architecture, package or test policy activates the corresponding checks. See rule activation.

Quick start

Smelt requires Python 3.12 or newer. Install the smelt-cli package (the unrelated PyPI package smelt is not this project):

uv tool install smelt-cli
# or: pip install smelt-cli

From your project root:

smelt init --maintainability  # draft smelt.yaml and select source/test checks
smelt check --show-hints --fail-on warning
smelt context <feature-or-path>  # inspect the policy before making a change
smelt explain SMT101             # understand a finding and its configuration

Review the generated configuration before adopting it: inference proposes a starting point, including architecture when recognizable; it does not decide your intended design. Small libraries can use named checks without features or layers. See configuration and adoption.

To run without installing, use uvx --from smelt-cli smelt check. From a local checkout, use uv tool install .. Run Smelt with a Python version that can parse the project's syntax; see Python versions. Building from a checkout or source distribution requires Rust 1.88+ and a platform linker. Release wheels include the native client.

Agent loop and enforcement

  1. Inspect the policy with smelt context <feature-or-path>.
  2. Edit, then run smelt check --changed --format json and address findings.
  3. Run focused tests, stage the intended changes, and run smelt check --staged --fail-on warning and prek run --all-files. Inspect hook fixes, stage the intended result, and rerun until checks pass.
  4. Run a full smelt check in CI to enforce the adopted policy project-wide.

For strict architecture coverage, add --strict-coverage; it requires every discovered production file to have a role or a reasoned exclusion. Changed checks compare against HEAD by default, including uncommitted changes. For PRs, --changed --base origin/main compares against the merge base. The integration guide includes a reusable agent instruction, pre-commit configuration, and GitHub Actions example. The agent workflow explains staged checks, partial staging and caching.

Scope

Smelt analyzes Python source statically. It checks the policies and rule patterns it supports, not arbitrary runtime behavior, dynamic imports, or test effectiveness. Many review-oriented checks are advisory and require judgment; a clean report does not establish correctness. Use tests, type checking, and tools such as Ruff alongside Smelt. See the vision and scope and each rule's page for its precise limits.

Documentation and development

Start with the documentation index, or browse the configuration reference, rule catalog, and changelog. For development setup, checks, rule contributions, and releases, see CONTRIBUTING.md.

Metadata

Release files for smelt-cli 0.2.0

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

Incomplete provenance

2 of 6 files were uploaded without provenance metadata.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for smelt-cli 0.2.0
File Size Uploaded Provenance Actions
smelt_cli-0.2.0.tar.gz 551.3 kB Without provenance Details for smelt_cli-0.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 6.6 MB

Release files / smelt_cli-0.2.0.tar.gz

Incomplete provenance

This file belongs to a release with incomplete provenance: while other files in this release have provenance metadata, this file does not.

We recommend further investigation before installing this file. View details.

Download URL smelt_cli-0.2.0.tar.gz
Size 551.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b5ebd4ae7bc51c81b84f3212fec9922e9e831e5be1520b23a7476a869dfebb89
BLAKE2b-256 checksum
How to use checksums
49e5ef1b02afb4a501c3a000282c4e1c61730fa24f1f804bff7e10929430bced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

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

Incomplete provenance

This file belongs to a release with incomplete provenance: while other files in this release have provenance metadata, this file does not.

We recommend further investigation before installing this file. View details.

Download URL smelt_cli-0.2.0-py3-none-win_amd64.whl
Size 1.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
45cbbb3ffe23df91ea0f98ad228368c1b86c636759cbe44a0ab2d92e5d442cd2
BLAKE2b-256 checksum
How to use checksums
fb69d0def9bb9b39c3658ad64223e5ef74b13a114f38a2d8e57e0baf0cc80493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

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

Incomplete provenance

This file belongs to a release with incomplete provenance: while this file has provenance metadata, other files in this release do not.

We recommend further investigation before installing this file. View details.

Download URL smelt_cli-0.2.0-py3-none-manylinux_2_28_x86_64.whl
Size 1.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f6ad2cb4783c654dc340c9c7e6a63e09191f09d94288ad8431e25768b6211250
BLAKE2b-256 checksum
How to use checksums
92ae39f040165da879786425597a8cc84de5a6bfca9c0da74b253fb29cd06e13
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 Oct 31, 2026.

Transparency log

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

Incomplete provenance

This file belongs to a release with incomplete provenance: while this file has provenance metadata, other files in this release do not.

We recommend further investigation before installing this file. View details.

Download URL smelt_cli-0.2.0-py3-none-manylinux_2_28_aarch64.whl
Size 1.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1508a0032cd6637fb13ac92e4e3781c9d3f8bfcc9597dcd90bcb1efc3c6955f3
BLAKE2b-256 checksum
How to use checksums
7bef43edbfc68be9a32a613fc1d2ebd85b2c9fb401dd05abf2ab7771a8940cef
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 Oct 31, 2026.

Transparency log

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

Incomplete provenance

This file belongs to a release with incomplete provenance: while this file has provenance metadata, other files in this release do not.

We recommend further investigation before installing this file. View details.

Download URL smelt_cli-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 1.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f4c2c4b4fb6995700fefc5317a1c7dfa2e20e0b623ac195928ae2a8becaae1b4
BLAKE2b-256 checksum
How to use checksums
7752645fccc5c2476e868fdfc7418496f77d44fce2c86d9172bfd984c017c930
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 Oct 31, 2026.

Transparency log

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

Incomplete provenance

This file belongs to a release with incomplete provenance: while this file has provenance metadata, other files in this release do not.

We recommend further investigation before installing this file. View details.

Download URL smelt_cli-0.2.0-py3-none-macosx_10_12_x86_64.whl
Size 1.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
61dc248f08eadd02598067907c7835f272cf47c539dff185e12bd9672358710d
BLAKE2b-256 checksum
How to use checksums
3a4ac5135b398183fb80904eb34e430a1d97e665661644e852b2866010b977bc
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 Oct 31, 2026.

Transparency log

Security for smelt-cli 0.2.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.

Incomplete provenance

2 of 6 release files were uploaded without provenance metadata.

Files with provenance 4 / 6
Files without provenance 2 / 6
Select from 6 files

Attestations for smelt_cli-0.2.0.tar.gz

This file was uploaded without provenance metadata.

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.

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