From a077c4309fffa6c3517ecb4c1f6d13550e04a84c Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Tue, 8 Nov 2022 13:03:41 +0000 Subject: [PATCH] CI: Leave running pre-commit to pre-commit.ci (#353) --- 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