diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 637aa35b22..ae20e15066 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.4" + rev: "v0.1.6" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -44,6 +44,7 @@ repos: rev: 23.10.1 hooks: - id: black-jupyter + types_or: [python, pyi, jupyter] - repo: https://github.com/adamchainz/blacken-docs rev: 1.16.0 @@ -66,13 +67,6 @@ repos: name: mypy with Python 3.11 args: ["--python-version=3.11"] -- repo: https://github.com/nbQA-dev/nbQA - rev: 1.7.0 - hooks: - - id: nbqa-ruff - additional_dependencies: [ruff==v0.1.4] - args: ["--extend-ignore=F821,F401,F841,F811"] - - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: diff --git a/pyproject.toml b/pyproject.toml index 8161145a15..e2a17df696 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -308,3 +308,4 @@ flake8-tidy-imports.ban-relative-imports = "all" [tool.ruff.lint.per-file-ignores] "docs/lite/jupyterlite.py" = ["F401", "F704"] +"**.ipynb" = ["F821", "F401", "F841", "F811", "E703"]