From 7a7dd2511f37eaa2992653a1f533533ab987fbf2 Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Thu, 23 Sep 2021 14:09:21 +0300 Subject: [PATCH] pre-commit: Run black from a non-local repo + skip local hooks from CI --- .pre-commit-config.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6499b53..1edcd45 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,8 @@ default_language_version: python: 'python3.9' fail_fast: true +ci: + skip: ["prospector", "mypy"] repos: - repo: "https://github.com/pre-commit/pre-commit-hooks" @@ -30,14 +32,13 @@ repos: args: - "--py39-plus" - - repo: "local" + - repo: "https://github.com/psf/black" + rev: "21.9b0" hooks: - id: "black" - name: "black" - entry: "black" - language: "system" - types: ["python"] + - repo: "local" + hooks: - id: "prospector" name: "prospector"