Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Bash(rm:*)",
"WebFetch(domain:docs.github.com)",
"Bash(git add:*)",
"Bash(python -m pytest application/datamanager/tests -v)",
"Bash(python -m pytest:*)",
"Bash(uv pip:*)",
"Bash(cat:*)",
"Bash(mise run:*)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Launch application
name: Launch infrastructure
on:
schedule:
- cron: '0 13 * * 1,2,3,4,5' # launch at 8:00 AM EST
jobs:
launch_application:
name: Launch application on weekday schedule
launch_infrastructure:
name: Launch infrastructure on weekday schedule
runs-on: ubuntu-latest
environment: pulumi
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
name: Teardown application
name: Teardown infrastructure
on:
schedule:
- cron: '0 23 * * 1,2,3,4,5' # teardown at 6:00 PM EST
jobs:
teardown_application:
name: Teardown application on weekday schedule
if: github.event.schedule == '0 23 * * 1,2,3,4,5'
teardown_infrastructure:
name: Teardown infrastructure on weekday schedule
runs-on: ubuntu-latest
environment: pulumi
steps:
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
.flox/log/
.flox/run/
.env
.ruff_cache/
.pytest_cache/
.venv/
.python_coverage.*
coverage_output/
__pycache__/
infrastructure/Pulumi.infrastructure.yaml
infrastructure/Pulumi.production.yaml
Expand All @@ -12,3 +16,6 @@ infrastructure/Pulumi.production.yaml
.coverage/
coverage.xml
infrastructure/kubeconfig.json
*.egg-info
wandb/
*.csv
12 changes: 6 additions & 6 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ docker compose --file tests.yaml down --volumes --remove-orphans
"""

[tasks."application:service:run:production"]
description = "Run the application service"
description = "Run the service application"
run = """
docker run \
--env-file .env \
Expand All @@ -50,30 +50,30 @@ pocketsizefund/{{arg(name="application_name")}}:latest \
"""

[tasks."application:service:run:development"]
description = "Run the application service locally with hot reloading"
description = "Run the service application locally with hot reloading"
run = """
cd application/{{arg(name="service_name")}}
cd applications/{{arg(name="service_name")}}
uv run uvicorn src.{{arg(name="service_name")}}.main:application --reload
"""

[tasks."application:service:test:integration"]
description = "Run integration tests"
run = """
cd application/{{arg(name="service_name")}}
cd applications/{{arg(name="service_name")}}
docker compose up --build --abort-on-container-exit --remove-orphans
"""

[tasks."application:service:test:behavioral"]
description = "Run behavioral tests"
run = """
cd application/{{arg(name="service_name")}}
cd applications/{{arg(name="service_name")}}
docker compose up --build --abort-on-container-exit
"""

[tasks."application:service:cleanup:behavioral"]
description = "Clean up behavioral tests"
run = """
cd application/{{arg(name="service_name")}}
cd applications/{{arg(name="service_name")}}
docker compose down -v
"""

Expand Down
12 changes: 7 additions & 5 deletions Dockerfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@ WORKDIR /tests

COPY pyproject.toml uv.lock ./

COPY application/datamanager/pyproject.toml ./application/datamanager/
COPY applications/datamanager/pyproject.toml ./applications/datamanager/

COPY application/positionmanager/pyproject.toml ./application/positionmanager/
COPY applications/portfoliomanager/pyproject.toml ./applications/portfoliomanager/

COPY application/predictionengine/pyproject.toml ./application/predictionengine/
COPY applications/models/pyproject.toml ./applications/models/

COPY infrastructure/pyproject.toml ./infrastructure/

COPY workflows/pyproject.toml ./workflows/
COPY libraries/python/pyproject.toml ./libraries/python/

RUN uv sync --all-packages --dev

COPY application/ ./application/
COPY applications/ ./applications/
Comment thread
forstmeier marked this conversation as resolved.

COPY libraries/ ./libraries/

RUN mkdir -p /tests/coverage_output
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ An unordered and non-exhaustive list we work towards:
> No code is good code
> Never write documentation
> Git is truth
> Communicate without speaking
> Make everything liquid

### Links

Expand Down
8 changes: 0 additions & 8 deletions application/datamanager/.dockerignore

This file was deleted.

17 changes: 0 additions & 17 deletions application/datamanager/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions application/datamanager/Dockerfile.test

This file was deleted.

37 changes: 0 additions & 37 deletions application/datamanager/compose.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions application/datamanager/features/environment.py

This file was deleted.

24 changes: 0 additions & 24 deletions application/datamanager/features/equity_bars.feature

This file was deleted.

11 changes: 0 additions & 11 deletions application/datamanager/features/health.feature

This file was deleted.

62 changes: 0 additions & 62 deletions application/datamanager/features/steps/equity_bars_steps.py

This file was deleted.

9 changes: 0 additions & 9 deletions application/datamanager/features/steps/health_steps.py

This file was deleted.

11 changes: 0 additions & 11 deletions application/datamanager/mise.toml

This file was deleted.

28 changes: 0 additions & 28 deletions application/datamanager/pyproject.toml

This file was deleted.

Loading