Skip to content

Commit f768b0e

Browse files
committed
Added makefile to make running tests easier
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent f9122be commit f768b0e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.PHONY: default format lint install check
2+
3+
default: check
4+
5+
format:
6+
uv tool run black .
7+
prettier . --write
8+
9+
lint:
10+
uv tool run black --check .
11+
uv tool run flake8 src/ --ignore=E203,W503,E722,E731 --max-complexity=100 --max-line-length=160
12+
uv tool run pyflakes src/
13+
uv tool run pyright src/
14+
15+
install:
16+
pipx install --force --editable .
17+
18+
check: format lint install
19+
uv run pytest
20+
bash tests/run-lint-tests.sh
21+
bash tests/run-format-tests.sh
22+
bash tests/run-shell-tests.sh

0 commit comments

Comments
 (0)