From 74901c85093f7dd13b604c2f9b449c2b865d1335 Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Tue, 8 Nov 2022 12:56:40 +0000 Subject: [PATCH] CI: Leave running pre-commit to pre-commit.ci --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8be250b2..c9ae377b 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,13 @@ cythonize: .install-cython $(PYXS:.pyx=.c) .install-deps: cythonize $(shell find requirements -type f) pip install -r requirements/ci.txt +ifndef CI pre-commit install +endif @touch .install-deps lint: .install-deps -ifdef CI - python -m pre_commit run --all-files --show-diff-on-failure -else +ifndef CI python -m pre_commit run --all-files endif python -m mypy frozenlist --show-error-codes