physics-lint

v1.1.0 safe
3.4
Low Risk

Linter for trained neural PDE surrogates

📦 Package Quality Overall: Medium (5.6/10)

✦ High Test Suite 9.0

Test suite present — 24 test file(s) found

  • Test runner config found: pyproject.toml
  • 24 test file(s) detected (e.g. test_anchor.py)
✦ High Documentation 9.0

Well-documented package

  • Documentation URL: "Documentation" -> https://tyy0811.github.io/physics-lint/
  • 1 documentation file(s) (e.g. conf.py)
  • Detailed PyPI description (32446 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

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

Partial type annotation coverage

  • 253 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 score 9.0

Found 6 network call pattern(s)

  • fter redirects. req = urllib.request.Request(url, method="HEAD") if auth_header:
  • try: with urllib.request.urlopen(req, timeout=30) as resp: return {
  • try: req = urllib.request.Request(url) with urllib.request.urlopen(req, ti
  • Request(url) with urllib.request.urlopen(req, timeout=30) as resp: body = res
  • buf = io.BytesIO() with urllib.request.urlopen(download_url, timeout=300) as resp: if resp.
  • ha256() size = 0 with urllib.request.urlopen(url, timeout=600) as resp, open(dest, "wb") as out:
⚠ Code Obfuscation score 8.0

Found 4 obfuscation pattern(s)

  • model_state_dict"]) model.eval() ds = LaplacePDEDataset(args.test_npz) # Subsample
  • model = model.to(device).eval() out["model_loaded"] = "strict=True OK (keys + shapes m
  • model = model.to(device).eval() out["model_loaded"] = "strict=True OK (corrected name-
  • model = model.to(device).eval() preflight["model_loaded"] = "strict=True OK (corre
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • gfood/run_dogfood_real.py via subprocess.run([DIFFPHYS_PYTHON, "dogfood/_extract_predictions.py", ...]).
  • file=sys.stderr) result = subprocess.run(cmd, check=False) if result.returncode != 0: rai
  • return 3 diffphys_sha = subprocess.check_output( ["git", "-C", str(diffphys_root), "rev-parse", "--s
  • def main() -> None: sha = subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip() print(f
  • r/bin:/bin", } proc = subprocess.run( [sys.executable, str(_SCRIPT_PATH), *script_args],
  • anchors HEAD.""" result = subprocess.run( ["git", "rev-parse", "--short=10", "HEAD"],
✓ 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 physics-lint
Build a simple Python application using the physics-lint package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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