diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3854c231..b3c3aa75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,4 +7,17 @@ repos: entry: nb-clean clean language: python types_or: [jupyter] + minimum_pre_commit_version: 2.9.2 +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 # Use the ref you want to point at + hooks: + - id: trailing-whitespace +- repo: https://github.com/nbQA-dev/nbQA + rev: 1.7.1 + hooks: + - id: nbqa-ruff + name: nbqa-ruff + entry: nbqa ruff + language: python + types_or: [jupyter] minimum_pre_commit_version: 2.9.2 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 98955912..ad383f61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ docs = ["m2r2==0.3.2", "sphinx-tabs==3.4.4", "sphinx-toolbox==3.5.0", "furo==2023.9.10"] +dev = ["pre-commit==3.5.0"] [tool.hatch.version] path = "kwave/__init__.py"