-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
I have the following setup with nbqa 1.9.0 and ruff 0.6.4:
# pyproject.toml
[tool.nbqa.addopts]
ruff = [
"--ignore=D,I",
]
# .pre-commit-config.yaml
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.0
hooks:
- id: nbqa-ruff-check
args: ["--fix"]
- id: nbqa-ruff-format
- id: nbqa-ruff-check
Nonetheless, pre-commit hooks still raise D100 and I001 in my notebooks. A workaround is to use:
# .pre-commit-config.yaml
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.0
hooks:
- id: nbqa-ruff-check
args: ["--fix", "--ignore=D,I"]
- id: nbqa-ruff-format
- id: nbqa-ruff-check
args: ["--ignore=D,I"]
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?
Metadata
Metadata
Assignees
Labels
No labels