Skip to main content

lintmax-py

Maximum-strictness Python quality gate. One command, always-latest, never stale.

The Python counterpart to lintmax (TypeScript), lintmax-go and lintmax-rs. Designed for coding agents, not humans.

Why

Python ships no strictness by default: no compiler, no unused-import error, no type enforcement. lintmax-py closes that gap and pushes past it — every rule ruff carries including the preview set, every ty diagnostic at error severity, plus the layers neither tool covers: dead code, unused dependencies, vulnerabilities, spelling, shell scripts and every non-Python file in the tree.

Never stale

No tool version is ever pinned. Ruff, ty and every child tool are fetched at latest on each run, and the rule set is DERIVED from the installed ruff rather than listed — so the moment ruff ships a new rule, your gate runs it. Dependency staleness is scanned against upstream every run.

dprint plugins resolve through each plugin's latest.json and the concrete versioned URL is written back. A constant floating URL is deliberately NOT used: dprint caches a plugin by its URL, so an unchanging URL resolves once and then freezes silently, which is the exact staleness the floating form appears to solve.

Use

Exactly four commands — the lean agent-first surface:

lintmax-py fix      # format + autofix + full gate — the default action
lintmax-py check    # verify only, no writes (CI mode) — same exhaustive scanner set
lintmax-py version  # print version
lintmax-py rules    # list every enabled rule under the maxed config

Prints ok on a single line on success, exit 0 = clean. Tool output is shown only on failure. A clean run that is cached prints ok (cached).

Self-evolving (automatic, never a command)

  • Child tools reinstalled at latest on a refresh cadence; CI always forces latest.
  • The binary refreshes itself in CI before gating.
  • No green-tree-hash cache: measured on 10,039 real files with all 968 rules, a full ruff run costs 4.3s while hashing the tree to skip it costs 2.6s, so the cache buys ~40% in its best case and adds a false-green failure mode. The expensive work is the network, and that is TTL-cached instead.
  • Dependency staleness scanned against upstream every run.

What runs

Layer Tool Catches
comments native (tokenize) deletes every # comment except directives; docstrings survive
format ruff format deterministic formatting
lint ruff, every rule including preview 968 rules across 59 linters at ruff 0.16.1
types ty, every rule at error type errors, including unannotated bodies mypy skips
dead code vulture unreachable functions, classes and names
unused deps deptry declared-but-unused and used-but-undeclared
vulnerabilities pip-audit PyPI Advisory Database plus OSV
spelling typos misspellings in code, identifiers and filenames
shell shellcheck, shfmt every shell script, every optional check on
other files dprint toml, json, markdown, yaml, dockerfile, css, html

Strictness policy

  • The ruff rule set is derived from ruff rule --all, so a newly shipped rule is enabled the run after it lands. ALL alone is not enough: preview rules require their exact code.
  • Every rule is error or off, never warn.
  • ty runs with all rules at error severity.
  • Ruff's own conflicting-rule pairs resolve to the stricter member.
  • The disable list starts EMPTY. Each entry is earned by a concrete conflict found on real code, never anticipated, and carries its reason.

Earned disables

Rule Reason
D100-D107 operator decision: code is self-explanatory rather than docstring-documented

Configless

Every config is embedded in the tool. Your project stays clean — no ruff.toml, no ty.toml, no dprint.json, no typos.toml. Updating lintmax-py updates every project's strictness. The bundled config is generic only and carries no project or ecosystem opinion.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lintmax_py-0.0.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lintmax_py-0.0.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file lintmax_py-0.0.2.tar.gz.

File metadata

  • Download URL: lintmax_py-0.0.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lintmax_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f6f1cc0fd193748e9bbf561ca42ab673d77dc7d5f407cb9ade6fea4cf726e188
MD5 f93bcfb65395e7731b1adbc5f2179849
BLAKE2b-256 0fe27ae7522ba4a13b27b9785491dff314b3744ebf1cfe77ca04df7d4408a6ec

See more details on using hashes here.

File details

Details for the file lintmax_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lintmax_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lintmax_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 585785d8b7889c63d60740ec93c990e4f69b3d3e7e9a5a7cb65020827c59e77e
MD5 895dca9d9409b86bb75b6571d6bdb6a8
BLAKE2b-256 d4b21087cf330bd824b1fe81beb4d0cffb6f14ae89c8f2fd7fcab1ede4a0d5b1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

This release

0.0.2 This release

2 files

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