Skip to content

Commit

Permalink
makefile: Pin black version
Browse files Browse the repository at this point in the history
Black keeps updating in the background and breaking our
CI due to slightly different formatting between versions.
Fix this by pinning the version.
  • Loading branch information
jerry-skydio committed Jan 29, 2024
1 parent 7df39f0 commit aa826f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/.*"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ include_package_data=True

[options.extras_require]
dev =
black
black==24.1.1
isort
pylint
mypy
Expand Down

0 comments on commit aa826f6

Please sign in to comment.