要格式化代码需要安装uncrustify工具,根据官方文档说明,只能使用v0.72版本进行格式化操作:
sudo apt install uncrustify
使用如下命令进行代码格式化操作:
cd/to/micropython
tools/codeformat.py -c ../wtools/cmodules/wtools/modwtools.c
tools/codeformat.py -c ../wtools/cmodules/wtools/modwtools.h要进行拼写检查,需要安装codespell工具:
pip install codespell tomli使用如下命令进行拼写检查操作:
cd/to/micropython
codespell ../wtools/