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.3.tar.gz (10.8 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.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lintmax_py-0.0.3.tar.gz
  • Upload date:
  • Size: 10.8 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.3.tar.gz
Algorithm Hash digest
SHA256 358604565f78216ed6a0ab74d155d5746a7f842c779f6964b9ac02fed16469aa
MD5 b61e0620cb49449cde92245922cd7af1
BLAKE2b-256 eea6f65b5d4147c33c38379d7f312623c0d35fe707ee55c36907684211197755

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lintmax_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 28fc9b98e80a610eed34b3eb00068060b8641d8973b8314d8dd08d4f950c0078
MD5 7b80a55d7a98d48b707d272ac1512f65
BLAKE2b-256 cae8fbb1e39c0a9442bd21b201b32d2a6e9b1a96b1c0950a1716be3f828fc4fa

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

This release

0.0.3 This release

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