From 6ffbeafba94179a44b0762c5bca24425eeaa03dd Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Date: Thu, 29 Jun 2023 11:12:20 -0300 Subject: [PATCH] chore: add skip to use pre-commit.ci --- .pre-commit-config.yaml | 6 ++++++ Makefile | 13 +------------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c5153f16..4cdbabadf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +ci: + skip: [build-docs, license, pylint] + exclude: | (?x)^( .bumpversion.cfg| @@ -20,7 +23,10 @@ repos: - id: debug-statements - id: end-of-file-fixer - id: fix-byte-order-marker + - id: fix-encoding-pragma + args: ["--remove"] - id: mixed-line-ending + args: ["--fix=lf"] - id: trailing-whitespace - repo: https://github.com/abravalheri/validate-pyproject diff --git a/Makefile b/Makefile index b9fc7a066..4414c0c37 100644 --- a/Makefile +++ b/Makefile @@ -5,18 +5,7 @@ all: install .PHONY: pre-commit pre-commit: install - @pre-commit run check-case-conflict -a --hook-stage manual - @pre-commit run check-toml -a --hook-stage manual - @pre-commit run check-yaml -a --hook-stage manual - @pre-commit run end-of-file-fixer -a --hook-stage manual || true - @pre-commit run fix-byte-order-marker -a --hook-stage manual || true - @pre-commit run mixed-line-ending -a --hook-stage manual || true - @pre-commit run trailing-whitespace -a --hook-stage manual || true - @pre-commit run validate-pyproject -a --hook-stage manual || true - @pre-commit run ruff -a --hook-stage manual || true - @pre-commit run black -a --hook-stage manual || true - @pre-commit run license -a --hook-stage manual || true - @pre-commit run requirements -a --hook-stage manual || true + @SKIP=pylint pre-commit run -a --hook-stage manual || true @pre-commit gc .PHONY: pre-commit-all