Skip to content

Commit ab89dc7

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 0f53e1d commit ab89dc7

File tree

4 files changed

+899
-2
lines changed

4 files changed

+899
-2
lines changed

nodemon.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"watch": ["src", "main.py"],
3+
"ext": "py",
4+
"exec": "python main.py"
5+
}

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ requires-python = ">=3.11"
77
dependencies = [
88
"fastapi[standard]>=0.115.8",
99
"ipykernel>=6.29.5",
10+
"matplotlib>=3.10.3",
1011
"numpy>=2.2.3",
1112
"pika>=1.3.2",
1213
"pytest>=8.3.4",
1314
"rabbitmq>=0.2.0",
15+
"sentence-transformers>=4.1.0",
1416
"uvicorn>=0.34.0",
1517
]
1618

shell.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ in pkgs.mkShell {
1111
docker
1212
docker-compose
1313
nodejs_18
14+
nodemon
1415
nodePackages.ts-node
1516
];
1617

@@ -24,9 +25,10 @@ in pkgs.mkShell {
2425
else
2526
echo "Virtual environment not found, creating one..."
2627
fi
27-
28-
alias dev='python3 main.py'
2928
alias python='python3'
29+
alias dev1='python3 main.py'
30+
alias dev='nodemon --exec python main.py --ext py --watch src/'
31+
3032
3133
which python3
3234

0 commit comments

Comments
 (0)