contract-lint

v0.2.6 safe
1.9
Low Risk

Lint a contract for internal-consistency defects — leftover placeholders, broken cross-references, undefined/unused defined terms, numbering gaps, party-name and date inconsistencies — with CI-gateable exit codes. Deterministic, stdlib-only. Also composes with the contract-ops suite.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 16 test file(s) found

  • Test runner config found: conftest.py
  • Test runner config found: pyproject.toml
  • 16 test file(s) detected (e.g. _make_goldens.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (11129 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 7.0

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • Type checker (mypy / pyright / pytype) referenced in project
  • 212 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

✓ Outbound Network Calls

No suspicious network call patterns found

⚠ Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • turn out _SIGNATURE_RE = re.compile( r"in\s+witness\s+whereof|\bsignature\b|\bsigned\b|\bby:|name:|title:|/s/|" r"hereunto\s+set|duly\s+authoriz|executed\s+(?:this|as\s+of|by)", re.IGNORECASE, ) def rule
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • (f"$ {' '.join(cmd)}") if subprocess.run(cmd, cwd=ROOT).returncode != 0: fail(f"command faile
  • st" ) identity = subprocess.run( ["git", "-C", str(ROOT), "log", "-1", "--format=%an
  • f"v{version}" existing = subprocess.run( ["git", "-C", str(ROOT), "tag", "--list", tag], tex
  • = argv_extra or [] proc = subprocess.run(cmd, capture_output=True, text=True, env=_ascii_env()) a
  • ALL="C", LANG="C") return subprocess.run( [sys.executable, str(CLI), *args], capture_
  • test $? -le 1' ) r = subprocess.run(["bash", "-e", "-c", cmd], capture_output=True, text=True)
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with contract-lint
Build a simple Python application using the contract-lint package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!