How to use this developer tool
- Paste Python code.
- Select a Python version.
- Choose analysis depth.
- Run the checker.
- Fix indentation and syntax issues before style warnings.
Check Python source for indentation problems, missing colons, bracket and string errors, common anti-patterns, and version-sensitive syntax using browser-based static analysis.
It inspects indentation levels, block headers, declarations, imports, mutable defaults, broad exceptions, built-in shadowing, None comparisons, and selected compatibility features.
The browser cannot import modules or execute Python. Verify final code with python, compileall, Ruff, Flake8, mypy, tests, or your IDE.
Input: a function missing a colon with a list default.
Output: missing-colon and mutable-default warnings with line locations.
Paste the code and run the checker. It reports inconsistent indentation and tab/space mixing.
The checker flags block-header lines such as def, class, if, for, while, try, except, and with that do not end with a colon.
It flags list, dict, and set literals used directly as default parameter values.
Select a target version. The checker flags selected features such as match/case, walrus expressions, and modern union syntax.
Static browser analysis cannot import modules, resolve names fully, execute decorators, or reproduce runtime data and environment behavior.
| Module | Purpose |
|---|---|
| Indentation | Levels and tab/space mixing |
| Syntax patterns | Colons, brackets, strings |
| Quality | Mutable defaults and broad except |
| Compatibility | Selected version features |