nbQA-dev / nbQA

Run ruff, isort, pyupgrade, mypy, pylint, flake8, and more on Jupyter Notebooks
https://nbqa.readthedocs.io/en/latest/index.html
MIT License
1.02k stars 39 forks source link

pre-commit autoupdate not finding ruff hooks #867

Open AlinderS opened 2 weeks ago

AlinderS commented 2 weeks ago

I am using the new Ruff hooks. This is the entry in my .pre-commit-config.yaml.

- repo: https://github.com/nbQA-dev/nbQA
  rev: 1.9.0
  hooks:
    - id: nbqa-ruff-check
      args: ["--fix", "--show-fixes"]
    - id: nbqa-ruff-format

Running the hooks works as expected, but when I run pre-commit autoupdate I get

[https://github.com/nbQA-dev/nbQA] Cannot update because the update target is missing these hooks: nbqa-ruff-check, nbqa-ruff-format

Additional details, OS: Arch Linux Virtualenv management: pipenv, version 2024.0.1

MarcoGorelli commented 2 weeks ago

thanks @AlinderS for the report

I don't know what might be causing this, but investigations / fixes would be welcome 🙏