question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ignore autoupdate for specific hook/s

See original GitHub issue

Take 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ssbarneacommented, Dec 9, 2021

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.

1reaction
asottilecommented, Jul 1, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found