From b1865cabf623a9080af258baf6cb3423fcbc546f Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 11 Feb 2020 15:22:26 +0100 Subject: pre-commit: Restrict python hooks to scripts/ directory --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44ad074ab1..6b8aa8a551 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,10 +82,12 @@ repos: rev: '3.7.9' hooks: - id: flake8 + files: ^scripts/.*$ - repo: https://github.com/psf/black rev: stable hooks: - id: black + files: ^scripts/.*$ - repo: local hooks: - id: qsscheck -- cgit v1.2.3