Name
+Score
+{item.name}
+{item.score}
+
+
+this port can then be forwarded to a browser tab like below:
+
+
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index b737430a..22f43374 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,7 +1,12 @@
{
- "service": "frontend-dev",
- "dockerComposeFile": "../docker-compose.yaml",
- "forwardPorts": [3000],
+ "name": "Open-Assistant",
+ "image": "mcr.microsoft.com/vscode/devcontainers/universal",
+ "features": {
+ "ghcr.io/devcontainers-contrib/features/pre-commit:2": {
+ "version": "latest"
+ }
+ },
+ "postCreateCommand": "bash .devcontainer/post_create_command.sh",
"customizations": {
"vscode": {
"extensions": ["GitHub.copilot"]
diff --git a/.devcontainer/post_create_command.sh b/.devcontainer/post_create_command.sh
new file mode 100644
index 00000000..983576b9
--- /dev/null
+++ b/.devcontainer/post_create_command.sh
@@ -0,0 +1,2 @@
+# ensure pre-commit is installed
+pre-commit install
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7e7a3023..27a6511d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,10 +26,7 @@
#
# /WARNING!
-exclude: "build|stubs|^bot/templates/|^notebooks/.*\\.ipynb$"
-
-default_language_version:
- python: python3
+exclude: build|stubs|^bot/templates/$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -42,12 +39,12 @@ repos:
# and which break the standard YAML check. The alternative would be to
# skip any unsafe errors (and thus break YAML compatibility) or use
# some other checker that may not work in general.
- exclude: "^copilot/.*/addons/.*$"
+ exclude: ^copilot/.*/addons/.*$
- id: check-json
- id: check-case-conflict
- id: detect-private-key
- id: fix-encoding-pragma
- args: ["--remove"]
+ args: [--remove]
- id: forbid-submodules
- id: mixed-line-ending
- id: requirements-txt-fixer
@@ -57,13 +54,13 @@ repos:
- id: check-symlinks
- id: check-merge-conflict
- id: check-added-large-files
- args: ["--maxkb=1024"]
+ args: [--maxkb=1024]
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- - id: black
+ - id: black-jupyter
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
@@ -79,7 +76,7 @@ repos:
rev: v2.7.1
hooks:
- id: prettier
- args: ["--prose-wrap=always", "--write"]
+ args: [--prose-wrap=always, --write]
- repo: local
hooks:
diff --git a/README.md b/README.md
index 103dc010..b619c931 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,15 @@ interact with the website.
**Note:** When logging in via email, navigate to `http://localhost:1080` to get
the magic email login link.
+**Note:** If you would like to run this in a standardized development
+environment (a
+["devcontainer"](https://code.visualstudio.com/docs/devcontainers/containers))
+using
+[vscode locally](https://code.visualstudio.com/docs/devcontainers/create-dev-container#_create-a-devcontainerjson-file)
+or in a web browser using
+[GitHub Codespaces](https://github.com/features/codespaces), you can use the
+provided [`.devcontainer`](.devcontainer/) folder.
+
## The Plan
We want to get to an initial MVP as fast as possible, by following the 3-steps
diff --git a/discord-bot/.env.example b/discord-bot/.env.example
index ec114c8f..8474ee90 100644
--- a/discord-bot/.env.example
+++ b/discord-bot/.env.example
@@ -1,7 +1,7 @@
BOT_TOKEN=Name
+Score
+{item.name}
+{item.score}
+