From aa826f6b3e5b153a7b0fcc6b41f5cf549faf80d0 Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Mon, 29 Jan 2024 10:31:26 -0800 Subject: [PATCH] makefile: Pin black version Black keeps updating in the background and breaking our CI due to slightly different formatting between versions. Fix this by pinning the version. --- Makefile | 3 +-- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a8723b3..e896a5c 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,7 @@ all: deps lint man package install # Install dependent pip packages, needed to lint or build deps: - $(PYTHON) -m pip install black isort pylint mypy build twine pytest pytest-mock - $(PYTHON) -m pip install . + $(PYTHON) -m pip install .[dev] # Format using black BLACK_CMD=$(PYTHON) -m black --line-length 100 -t py38 --preview --exclude "build/.*|\.eggs/.*" diff --git a/setup.cfg b/setup.cfg index f578a12..7469d7e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -55,7 +55,7 @@ include_package_data=True [options.extras_require] dev = - black + black==24.1.1 isort pylint mypy