ignore autoupdate for specific hook/s
See original GitHub issueTake it as RFE or question
Recently, mypi
latest version creating problems for my projects. I want to avoid mypi
hook in autoupdate
.
Do we have anything which helps me to ignore just a specific hook and allow auto update for all other hooks as per YAML?
I think we can add one tag in yaml like autoupdate=false
default pre-commit will consider autoupdate=true for all hooks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
auto_update_{$type} | Hook - WordPress Developer Resources
Description. The dynamic portion of the hook name, $type , refers to the type of update being checked. Possible hook names include:.
Read more >How to Disable Automatic Updates in WordPress - WPBeginner
Method 1. Disabling Automatic WordPress Updates Using Code (Recommended) define( 'WP_AUTO_UPDATE_CORE' , false ); This will disable all ...
Read more >How can I avoid "auto-update" cache when using `react-apollo ...
Does anyone know of a way to use useSubscription hook, and not have the cache be automatically updated? The response will ultimately always...
Read more >plugins - Why Does The `auto_update_plugin` Hook Disable ...
... wether a specific plugin should auto update a specific update. For example, if you want to enable or disable wether plugin auto-updating ......
Read more >How to Disable Automatic WordPress Updates - WP Engine
If so, you may have been surprised to find that the WordPress auto update was to blame. A WordPress user can avoid this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think that the ability to disable autoupdate for a specific hook entry is needed as I recently faced one such case with https://github.com/ansible/ansible-navigator/blob/main/.pre-commit-config.yaml#L224-L235
This repo has 15+ repos to update but one of the hooks cannot be updated because ones of flake8 extensions does not support flake 4.0 yet and I suspect it may take even 6 months for it to be updated. Updating ~15 hook versions by hand is no joy.
What is even more interesting is that
--repo
would not be usable in this case because we list flake8 twice, once as normal hook and once as manual, with a slightly different setup. One of them is safe to auto-update, the other one is not.that has nothing to do with python3.6 and if you want to restore all of typeshed without thinking about it see https://github.com/asottile/types-all