Skip to content

Commit

Permalink
chore: add clang-format to venv
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Nov 1, 2024
1 parent 6245b45 commit aab7229
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ setup-venv: .venv/bin/python
.venv/bin/pip install --upgrade --requirement tests/requirements.txt

format: setup-venv
@clang-format -i \
@.venv/bin/clang-format -i \
examples/*.c \
include/*.h \
src/*.c \
Expand All @@ -80,6 +80,8 @@ format: setup-venv
.PHONY: format

style: setup-venv
@.venv/bin/python ./scripts/check-clang-format.py -r examples include src tests/unit
@.venv/bin/python ./scripts/check-clang-format.py \
--clang-format-executable .venv/bin/clang-format \
-r examples include src tests/unit
@.venv/bin/black --diff --check tests
.PHONY: style
3 changes: 2 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ black==24.3.0
pytest==8.1.1
pytest-httpserver==1.0.10
msgpack==1.0.8
pytest-xdist==3.5.0
pytest-xdist==3.5.0
clang-format==19.1.3

0 comments on commit aab7229

Please sign in to comment.