包含 .editorconfig 文件

作者: robvdl创建于 2023年3月31日更新于 2023年4月2日

Twitter 的源代码使用了稍微不寻常的代码风格, 使用 2 个空格缩进, 而 Python 语言偏好设置为 4。如果每个仓库都包含一个 .editorconfig 文件, 明确指定为 .py 文件使用 2 个空格缩进, 这将有助于 IDE 和编辑器为项目使用正确的缩进。

内容来源: twitter/the-algorithm-ml