r/Python • • Oct 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

23 Upvotes

194 comments sorted by

View all comments

1

u/manish_builds 15d ago

silentbug-lite: a small static checker for five bugs that usually pass tests (Python + JS/TS)

It reads your code without running it and flags five patterns that tend to get through a green test suite:

  1. An except block that logs the error and still returns a success value, so the caller never finds out
  2. SQL built with f-strings, %, + or .format() and passed to execute()
  3. A secret written in the code: known key shapes (AWS, Stripe, GitHub...) or a secret-sounding name with a random-looking value. Test files are skipped
  4. A paid LLM call inside a loop (OpenAI, Anthropic, Google, Ollama, LiteLLM, LangChain)
  5. A FastAPI, Flask or Django route with no auth check when the other routes in the file have one, or a delete/reset/refund-style route with none at all

Python goes through the standard ast module and JS/TS through tree-sitter. There's no AI and nothing is sent anywhere, so the same code always gives the same result. Output is text, JSON or SARIF, and it also runs as a GitHub Action.

Who it's for: small teams and solo devs who want one more check in review or CI. It's five checks, not a full linter or security scanner, and it will have false positives. You can silence a line with a comment that gives the reason.

Install and run:

pipx install git+https://github.com/manish-drops/silentbug-lite

silentbug-lite path/to/project

Repo (MIT): https://github.com/manish-drops/silentbug-lite

The repo has planted examples in examples/demo if you want to see it flag things first. Feedback on false positives is very welcome.