kantord/SeaGOAT

Set up automated line length formatting for YAML files

开放

#275 创建于 2023年9月29日

 (2 条评论) (0 个反应) (1 位负责人)Python (91 个派生)github user discovery
good first issuehacktoberfestup for grabs

仓库指标

星标
 (1,302 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We have rules that limit line width for YAML files, which is good, but it is annoying because it is not an autofixable error. This can be implemented on an individual basis by configuring code editors to do it, but it's much better if it's done automatically the same way all the other autoformatting/linting is done.

Here is our configuration for pre-commit: https://github.com/kantord/SeaGOAT/blob/main/.pre-commit-config.yaml, which would be the tool we need to use to implement this autoformatting.

Here is the website of pre-commit: https://pre-commit.com/

A hook should already exists for this, but if not, it can probably be manually added as pre-commit should be able to run arbitrary commands.

贡献者指南