Skip to content

Commit 72139fd

Browse files
authored
✨ add justfile (#55)
* ✨ add justfile * ✨ add fastapi server for tests
1 parent 01466fc commit 72139fd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

justfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Justfile
2+
3+
default:
4+
help
5+
6+
# Help task to display available tasks
7+
help:
8+
@echo "Available tasks:"
9+
@echo " test - Run tests using pytest."
10+
@echo " precommit - Run pre-commit checks."
11+
12+
# Task to run tests using pytest
13+
test:
14+
python test/shared/_fastapi.py & P1=$! & sleep 3
15+
16+
python -m pytest & P2=$!
17+
wait $P1 $P2
18+
19+
# Task to run pre-commit checks
20+
precommit:
21+
pre-commit run --all-files

0 commit comments

Comments
 (0)