Open martibosch opened 2 months ago
thanks for the report 🙏 investigations + fixes are welcome
@martibosch I think you should have ruff check
instead of ruff
to affect nbqa-ruff-check
:
[tool.nbqa.addopts]
"ruff check" = [
"--ignore=D,I",
]
or perhaps better to configure ruff directly:
[tool.ruff.lint]
ignore = ["D", "I"]
or if this is in nbqa config in order to only affect notebooks, after #870 you should be able to do:
[tool.ruff.lint.per-file-ignores]
"**/*nbqa_ipynb.py" = ["D", "I"]
I have the following setup with nbqa 1.9.0 and ruff 0.6.4:
Nonetheless, pre-commit hooks still raise D100 and I001 in my notebooks. A workaround is to use:
However, this requires me to "duplicate" the configuration. Is there any way to make nbqa take pyproject.toml into account with the new
nbqa-ruff-check
hook?