Add Python source
Python scanner guide: how to inspect code and read results
Your code is treated as inert text and is never run. Review exact before/after changes before applying an offered fix.
Source input is locked while decisions are active. Undo or reset decisions, or start a new inspection.
Files and pasted source are limited to 1 MB of UTF-8. Loading and inspection stay in this browser. Loaded files retain their original line endings until you edit the text above; editing uses the text area's normalized line endings.
Inspection results
Select Show line to locate a finding, then review an offered fix or keep the original. Syntax checks are available below; your code is never executed.
Code view
Long lines show excerpts. Show line centers the finding’s location.
Findings
This inspection does not run the program or prove that the code is correct.
Check Python syntax and names
Check the original and cleaned copy as complete Python 3.14 files, without executing either. The first check loads about 13 MB of runtime files from this app; your source stays in this browser.
Python reports the first syntax error in each copy. If syntax passes, local name analysis checks for unresolved names and some uses before assignment. It does not verify imported packages, every execution path, runtime behavior, or security. Incomplete snippets may refer to names defined elsewhere.
Name findings
Review names in context. Wildcard imports and dynamic namespaces can supply names this analysis cannot resolve. No automatic renames are offered.
Original source
Cleaned copy
Cleanup decisions and output
Changes from the original
Brackets label spaces, line endings, and hidden characters. Context is abbreviated; changed characters are shown in full.
Save the reviewed copy
Downloads use UTF-8 and preserve the original BOM and line endings. Copy sends the same source text; clipboard destinations may normalize line endings. Neither output proves the program is correct.
The JSON audit contains source digests, positions, offered edits, and decision history without full source text. Replay requires the same original source and detector versions; imported decisions are previewed before restoration.