Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1246

Python • Re: Windows offline syntax check tool for MicroPython scripts

$
0
0
Just install CPython on your Windows System and use it to compile python source code to python bytecode.

Code:

py -m compileall main.py
If there is a SyntaxError, you'll get a message about it.

In addition, you could use tools like Ruff or Black to autoformat your python source.

Statistics: Posted by DeaD_EyE — Sat Feb 22, 2025 5:34 pm



Viewing all articles
Browse latest Browse all 1246

Trending Articles