Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 918 Bytes

File metadata and controls

40 lines (26 loc) · 918 Bytes

MicroPython WTools CModule

代码格式化及拼写检查

格式化代码

要格式化代码需要安装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/

参考资料

Git commit conventions