-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming this file is just a dummy example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, but it is run/applied to the repo.
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the above, other useful generic ones (full list here):
check-case-conflict
check-executables-have-shebangs
check-merge-conflict
mixed-line-ending
withargs: [--fix=lf]
for Windows users
@@ -0,0 +1,8 @@ | |||
repos: | |||
- repo: https://github.com/pre-commit/pre-commit-hooks | |||
rev: v3.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev: v3.2.0 | |
rev: v4.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I enabled dependabot for this repo, so it should take care of opening PRs for verison updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependabot doesn't support pre-commit
dependabot/dependabot-core#1524
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh woops, I thought this was a github actions file (not sure why). Is there something else I can use to update all the versions locally, or do I have to go through each one manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run pre-commit autoupdate
. Not sure of a way of automating it. I just run that command every now and then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found pre-commit autoupdate
😄
No description provided.