Weftgate Open-Source Tool Catches Broken Env Vars, Imports, and Routes in Python Code

Weftgate is an open-source static analysis tool designed to verify environment variable reads, dependency imports, and FastAPI route references against contracts defined in a repository. It runs locally via a CLI, MCP, hooks, and CI integrations, with no runtime dependencies or network calls on its default path. The tool flags issues such as misspelled environment variable names and missing dependency declarations, returning actionable suggestions or advisory review findings depending on how confidently it can resolve a reference. A GitHub Actions workflow configuration is available for pull request checks, and MCP clients can invoke the same gate functions without a separate server or API account. Developers are cautioned that a passing result does not confirm an application works correctly, and normal testing, type checking, and security reviews should continue alongside its use.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in