Skip to main content

用于快速格式化和检查样式 C/C++ 和 Python 代码的工具

项目描述

Stylize 是一个命令行工具,用于快速重新格式化 C++ 或 Python 代码库。它是clang-formatyapf的包装器。

安装

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

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

stylize-0.3.2.tar.gz (7.1 kB 查看哈希)

已上传 source

内置分布

stylize-0.3.2-py3-none-any.whl (10.6 kB 查看哈希)

已上传 py3