mne-tools / mne-installers

Installers for MNE-Python.
BSD 3-Clause "New" or "Revised" License
9 stars 8 forks source link

[pre-commit.ci] pre-commit autoupdate #262

Closed pre-commit-ci[bot] closed 6 months ago

pre-commit-ci[bot] commented 6 months ago

updates:

larsoner commented 6 months ago

Pushed a commit so that when python tests/test_outdated.py is run, it automatically updates the YAML file. It's only a few lines of regex and saves me from having to manually update them. Now locally I can just python tests/test_outdated.py, then do git diff to make sure it looks okay, then commit and push!

I then also added a joblib cache of the JSON fetches because iteratively testing test_outdated.py was a very slow painful process without it. Cache invalidates after 60 minutes and can easily be removed if needed.

larsoner commented 6 months ago

Ooooh I could add it as an autofix.ci actually. Then the PR could update itself. I might revert my changes to recipe.yml and see if it works...

drammock commented 6 months ago

looks like it worked!

larsoner commented 6 months ago

@hoechenberger feel free to merge if you're happy, this should reduce maintenance burden with updating outdated packages!