Exclude Pipfile.lock from pretty-format-json pre-commit hook#42
Exclude Pipfile.lock from pretty-format-json pre-commit hook#42
Pipfile.lock from pretty-format-json pre-commit hook#42Conversation
We will simply let pipenv format those files however it wants; we don't care about prettifying them since they are for the most part only read by machines.
|
@mcdonnnj Can you please review this change? It will make our lives easier with all of the dependabot PRs that currently fail linting. |
|
Is there any reason this shouldn't be baked into the base configuration housed in cisagov/skeleton-generic? |
The only argument against that is it's not really necessary since we don't have pipfiles in skeleton-generic. I seem to recall we had another similar situation in the past, but I don't recall which way we went with it. I'm fine either way. |
I think that since we would make use of this in at least two descendant skeleton projects, and since it has no negative impact, we should punt it up to the base configuration in cisagov/skeleton-generic. |
That logic works for me. @jsf9k, unless you have major objections, can you please make a PR for this in skeleton-generic and then close this one out? |
Won't the |
That is a good point. @mcdonnnj Any thoughts? |
He is correct and I completely forgot about that hook. I guess the only alternative thought I had was adding the exclude but commenting it out until needed. Basically treating it similar to dependabot ignore statements that we enable downstream, but in this case enable as needed. I just like the idea of storing a configuration detail used across multiple skeleton lineages in a single place. |
For the love of JVPITER! Closing this PR in favor of cisagov/skeleton-generic#261. |
🗣 Description
This pull request modifies the
pre-commitconfiguration to excludePipfile.lockfrom thepretty-format-jsonhook.💭 Motivation and context
We will simply let
pipenvformat those files however it wants; we don't care about prettifying them since they are for the most part only read by machines. This also saves us some time and effort on Dependabot PRs that update thePipfile.lockfile since they should pass thepre-commitlinters without being reformatted.🧪 Testing
All automated tests pass.
✅ Pre-approval checklist