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 rule config is embedded in the tool. Your project stays clean — no ruff.toml, no ty.toml, no dprint.json. Updating lintmax-py updates every project's strictness. The bundled config is generic only and carries no project or ecosystem opinion.

The single exception is vocabulary, which is data rather than strictness. A spell checker with no project dictionary reports every domain noun a codebase owns — a client name, a product name, a protocol token — as a misspelling, and the only escapes would be renaming the domain or turning the stage off. So the [default.extend-words] and [default.extend-identifiers] tables are read from whichever of typos.toml, _typos.toml, .typos.toml or pyproject.toml ([tool.typos]) your project carries, in that order, and merged into the generated config. Nothing else in that file is read: the switches stay owned by the gate, so a project can name the words it uses and cannot weaken the check that reads them.

# typos.toml
[default.extend-words]
myproduct = "myproduct"

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.4.tar.gz (11.6 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.4-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lintmax_py-0.0.4.tar.gz
  • Upload date:
  • Size: 11.6 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.4.tar.gz
Algorithm Hash digest
SHA256 828ae8d410b7c2dabe50b0e013716d775f233ffc7a378d7507c5a1ee0b8f0d35
MD5 e79c67c15d8eaa14dfc8251d348be544
BLAKE2b-256 0486aade121eb5ac653efb75efe1b9256f4093d94993b33f973ae95c0dbda778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lintmax_py-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4ab27e71b98d5779e4d3ad2e0884e858b540af98f26aca7e880f46043f5c9ec2
MD5 69a2a165bd59f329d8d5394b8ec24c99
BLAKE2b-256 d00104134a64007a22d5241c4e706e5165189edbea8af5812c8deb6c209cc95d

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

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

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