From 1e0650fe63f4927724d47c4570cbf98f561d2bc5 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Wed, 16 Mar 2022 01:01:45 +0200 Subject: [PATCH] Add hooks for notebooks --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95a7d9c9..a1273b79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,10 +53,25 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 hooks: + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files + - repo: https://github.com/kynan/nbstripout + rev: 0.5.0 + hooks: + - id: nbstripout + + - repo: https://github.com/nbQA-dev/nbQA + rev: 1.3.1 + hooks: + - id: nbqa-black + - id: nbqa-flake8 + - id: nbqa-pyupgrade + args: [--py39-plus] + # Lint: Dockerfile - repo: https://github.com/hadolint/hadolint.git rev: v2.8.0