一种快速格式化和检查C/C++和Python代码的工具
stylize的Python项目详细描述
TyrIZE是一种用于快速重整C++的命令行工具。 python代码库。它是clang-format和yapf的包装器。
安装
pip3 install stylize
用法
# reformat all C++/Python files in the current directory recursively stylize # reformat only files that differ from origin/master stylize --diffbase=origin/master # run in checkstyle mode - no files are changed and a nonzero return code # indicates that some files are out of accordance with the style configurations. stylize --check