From 366efe430db51a3ec90e5f05a12e22793fb1b670 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Wed, 16 Mar 2022 01:28:35 +0200 Subject: [PATCH] Update config --- .pre-commit-config.yaml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b33b36f..d2e5576c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,21 +57,6 @@ repos: - id: end-of-file-fixer - id: check-added-large-files - # strip output from Jupyter notebooks - - repo: https://github.com/kynan/nbstripout - rev: 0.5.0 - hooks: - - id: nbstripout - - # Run tools on Jupyter notebooks - - 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 @@ -114,6 +99,24 @@ repos: - id: markdownlint args: ["--fix"] + # Run tools on Jupyter notebooks + + # strip output from Jupyter notebooks + - repo: https://github.com/kynan/nbstripout + rev: 0.5.0 + hooks: + - id: nbstripout + + # py-like tools + - repo: https://github.com/nbQA-dev/nbQA + rev: 1.3.1 + hooks: + - id: nbqa-pyupgrade + args: [--py39-plus] + - id: nbqa-black + args: [--target-version=py39] + - id: nbqa-flake8 + # Docker hooks do not work in pre-commit.ci # See: ci: