Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github codespace and justfile #625

Merged
merged 2 commits into from
Nov 13, 2024
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
12 changes: 12 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@
"features": {
"ghcr.io/jsburckhardt/devcontainer-features/uv:1": {},
"ghcr.io/eitsupi/devcontainer-features/just:0": {}
},
"customizations": {
"codespaces": {},
"vscode": {
"extensions": [
"ms-python.python",
"eamodio.gitlens",
"charliermarsh.ruff",
"bibhasdn.django-html",
"tomusher.djhtml-vscode",
]
}
}
}
14 changes: 11 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ dev_createsuperuser:
dev_runserver:
uv run dotenv run -- python manage.py runserver

# Run a django management command in the development environment.
dev_manage *options:
uv run dotenv run -- python manage.py {{ options }}

# Start the tailwind watcher - this will re-run tailwind to generate css as code is changed.
dev_tailwind_start:
uv run dotenv run -- python manage.py tailwind start
Expand All @@ -47,10 +51,14 @@ data_analysis_repo:
git clone https://github.com/thegreenwebfoundation/data-analysis.git
fi

# Start a Marimo notebook session.
notebook_gitpod: data_analysis_repo
# Start a Marimo notebook session from a starter notebook
data_marimo_starter *options: data_analysis_repo
# set up our start notebook with django initialised ready for queries
uv run dotenv run -- marimo edit data-analysis/starter-notebook.py
uv run dotenv run -- marimo edit data-analysis/starter-notebook.py {{ options }}

# Run Marimo notebook session
data_marimo *options: data_analysis_repo
uv run dotenv run -- marimo {{ options }}

# Run the django tests (with pytest), creating a test database using the `testing` settings.
test *options:
Expand Down