Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up automated line length formatting for YAML files #275

Open
kantord opened this issue Sep 29, 2023 · 2 comments
Open

Set up automated line length formatting for YAML files #275

kantord opened this issue Sep 29, 2023 · 2 comments
Assignees

Comments

@kantord
Copy link
Owner

kantord commented Sep 29, 2023

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.

@stroncod
Copy link

Hi! I would like to solve this. I have some experience using and writing pre-commits.

@kantord
Copy link
Owner Author

kantord commented Sep 30, 2023

Hi! I would like to solve this. I have some experience using and writing pre-commits.

sure, go for it @stroncod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants