Closed Anu-Ra-g closed 2 months ago
thanks @Anu-Ra-g for the report
yup, this
needs updating to use ruff check
maybe we need nbqa-ruff-check
and nbqa-ruff-format
@MarcoGorelli I'd like to try to solve this issue can refer me to the files to which I should look at?
thanks! just nbQA/.pre-commit-hooks.yaml should be enough, make two new hooks:
and for the current nbqa-ruff
one, make entry
nbqa "ruff check"
(for backwards compatibility)
thanks!
Is this okay?
- id: nbqa-ruff
name: nbqa-ruff
description: Run 'ruff check' on a Jupyter Notebook # backwards compatiblity
entry: nbqa "ruff check"
language: python
additional_dependencies: [ruff]
require_serial: true
types_or: [jupyter, markdown]
- id: nbqa-ruff-check
name: nbqa-ruff-check
description: Run 'ruff check' on a Jupyter Notebook
entry: nbqa ruff check
language: python
additional_dependencies: [ruff]
require_serial: true
types_or: [jupyter, markdown]
- id: nbqa-ruff-format
name: nbqa-ruff-format
description: Run 'ruff format' on a Jupyter Notebook
entry: nbqa ruff format
language: python
additional_dependencies: [ruff]
require_serial: true
types_or: [jupyter, markdown]
nbqa ruff check
should be nbqa "ruff check"
, same for format
I'm getting an error, while running this hook
I'm getting,
With the
check
argument, I'm getting this,I guess this is happening due to lack of support for the new version of
ruff
?