Check Python syntax without executing code
Check whether source parses under the running Python interpreter.
Automate useful parts of a development workflow. Each guide includes full code, usage instructions, and ideas for making it your own.
Search this category ↗Check whether source parses under the running Python interpreter.
List every explicit return in each function's own scope.
Estimate function branching with an explicit syntax-based metric.
List class declarations, syntactic base expressions, metaclass keywords, and direct methods.
Extract parameter, return, and variable annotations as source expressions.
List literal add_argument calls for command-line documentation.
Export doctest prompts and expected output from docstrings.
Collect actionable comment markers without matching string literals.
Rank up to fifty string literals by decoded character length.
Report functions with missing parameter or return annotations.
Flag list, dictionary, and set literals used as parameter defaults.
Flag imported bindings that never appear as loaded names.
Report modules, functions, and classes without docstrings.
Flag repeated evaluable literal keys within dictionary displays.
Group functions with identical parameter syntax and body ASTs.
Export function names, line numbers, arguments, and return annotations.
Locate test_ functions and Test classes without running tests.
Locate async functions, awaits, async loops, and async context managers.
List imported modules, imported names, aliases, and source lines.
List explicit raise and except statements for error-handling review.
List uppercase module constants and their source expressions.
Export each source file's distinct imported module paths.
Inventory public-looking module functions/classes and a literal __all__.
List explicit global and nonlocal bindings for state-coupling review.
List call expressions inside each function's own scope.