Skip to content
Merged
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
720 changes: 360 additions & 360 deletions .flox/env/manifest.lock

Large diffs are not rendered by default.

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
39 changes: 0 additions & 39 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,6 @@ docker compose --file tests.yaml run --rm --no-TTY tests
docker compose --file tests.yaml down --volumes --remove-orphans
"""

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

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

[tasks."application:service:test:behavioral"]
description = "Run behavioral tests"
run = """
cd application/{{option(name="service")}}
if [ {{flag(name="cleanup")}} == true ]
then
docker compose down -v
else
docker compose up --build --abort-on-container-exit
fi
"""

[tasks."lint"]
depends = ["python:lint"]
description = "Run code quality checks"
Expand Down Expand Up @@ -93,16 +67,3 @@ set -e
cd infrastructure
uv run pulumi down --yes --stack pocketsizefund/pocketsizefund/production
"""

[tasks."cli:datamanager:authorize"]
description = "Authorize the CLI with AWS credentials"
run = """
aws iam attach-user-policy --user-name {{option(user-name="user-name")}} --policy-arn ${{pulumi stack output DATAMANAGER_API_ACCESS_POLICY_ARN}}
"""

[tasks."dashboard:upload"]
description = "Upload Grafana dashboard"
run = """
cd infrastructure
nu upload_grafana_dashboard.nu
"""
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/

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.

33 changes: 0 additions & 33 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