[feature-request] terraspace fmt specific files #95
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Summary
In #94,
terraspace fmt
was added (🥳 ). Can this be further expanded upon to pass a list of files to runfmt
on, instead of the entire project? Something like this:Motivation
We are using a
.pre-commit-config.yaml
to run certain things as a pre-commit hook to the project. We've added this into the mix to ensure our files are formatted. However, if we change one file, it runs on the entire project resulting in a long processing of our larger Terraspace projects.If we could pass individual files,
pre-commit-config
allows us to pass the staged files to the script being called. This would drastically improve pre-commit performance as it would only need to run on the files that were actually modified.Note: I would submit a PR, but I am not familiar enough with Ruby and am hoping someone else has some bandwidth to cook this up. 🍻
The text was updated successfully, but these errors were encountered: