Skip to content

Commit e7dc7e4

Browse files
committed
Added missing hidden dep, changed log dir
1 parent 5f22d33 commit e7dc7e4

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,6 @@ cython_debug/
169169

170170
# SQLite database
171171
*.db
172+
173+
# VSCode
174+
.vscode/*

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ SUPERVISOR := $(VENV)/bin/supervisord
88

99
uv:
1010
@echo "Installing uv..."
11-
@command -v uv >/dev/null 2>&1 || { echo "Installing uv..."; curl -LsSf https://astral.sh/uv/install.sh | sh; }
11+
@command -v uv >/dev/null 2>&1 || { echo "uv not found, installing..."; curl -LsSf https://astral.sh/uv/install.sh | sh; }
1212
@echo "uv is installed"
1313

1414
env: uv
1515
@echo "Installing python dependencies..."
1616
@uv add pyproject.toml
1717
@echo "Installing git hooks..."
18+
@mkdir -p .log
1819
@uv run pre-commit install
1920
@uv run pre-commit install --hook-type pre-push
2021
@if [ ! -f ~/.aws/config ]; then \
@@ -32,5 +33,7 @@ test:
3233
@$(PYTHON) -m pytest --cov=./ --cov-report=xml
3334

3435
clean:
35-
@rm -rf $(VENV)
3636
@echo "Removing venv..."
37+
@rm -rf $(VENV)
38+
@echo "Removing .log directory..."
39+
@rm -rf .log

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212
"edgartools>=2.29.1",
1313
"flask-cors>=5.0.0",
1414
"flask>=3.0.3",
15+
"greenlet>=3.1.0",
1516
"langchain-community>=0.3.0",
1617
"langchain-openai>=0.2.0",
1718
"langchain>=0.3.0",

supervisord.conf

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
[supervisord]
22
nodaemon=true
3-
logfile=./supervisord.log
4-
pidfile=./supervisord.pid
3+
logfile=./.log/supervisord.log
4+
pidfile=./.log/supervisord.pid
55

66
[program:moto-server]
77
command=.venv/bin/moto_server -H 0.0.0.0 -p5050
88
autostart=true
99
autorestart=true
10-
stderr_logfile=./moto-server.err.log
11-
stdout_logfile=./moto-server.out.log
10+
stderr_logfile=./.log/moto-server.err.log
11+
stdout_logfile=./.log/moto-server.out.log
1212

1313
[program:check-moto-server]
1414
command=bash -c "while ! curl -s http://localhost:5050/moto-api/data.json > /dev/null; do sleep 1; done"
1515
autostart=true
1616
autorestart=false
1717
startsecs=0
1818
exitcodes=0
19-
stderr_logfile=./check-moto-server.err.log
20-
stdout_logfile=./check-moto-server.out.log
19+
stderr_logfile=./.log/check-moto-server.err.log
20+
stdout_logfile=./.log/check-moto-server.out.log
2121

2222
[program:create-s3-bucket]
2323
command=bash -c "export AWS_ACCESS_KEY_ID=foo && export AWS_SECRET_ACCESS_KEY=bar && .venv/bin/aws --endpoint-url=http://localhost:5050 s3 mb s3://chainlit"
2424
autostart=true
2525
autorestart=false
2626
startsecs=0
2727
exitcodes=0
28-
stderr_logfile=./create-s3-bucket.err.log
29-
stdout_logfile=./create-s3-bucket.out.log
28+
stderr_logfile=./.log/create-s3-bucket.err.log
29+
stdout_logfile=./.log/create-s3-bucket.out.log
3030

3131
[program:chainlit-app]
3232
command=.venv/bin/chainlit run src/app.py -w --port 8080
3333
autostart=true
3434
autorestart=true
35-
stderr_logfile=./chainlit-app.err.log
36-
stdout_logfile=./chainlit-app.out.log
35+
stderr_logfile=./.log/chainlit-app.err.log
36+
stdout_logfile=./.log/chainlit-app.out.log
3737
stopsignal=TERM
3838
stopwaitsecs=10

uv.lock

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)