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
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "Ecoindex python full stack dev container",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"postCreateCommand": "pipx install poetry && poetry self add poetry-multiproject-plugin && poetry self add poetry-polylith-plugin",
"features": {
"ghcr.io/audacioustux/devcontainers/taskfile": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v2"
}
},
"forwardPorts": [
8000
],
"customizations": {
"vscode": {
"extensions": [
"-ms-python.autopep8",
"adrianwilczynski.alpine-js-intellisense",
"adrianwilczynski.alpine-js-intellisense",
"bierner.markdown-emoji",
"charliermarsh.ruff",
"Codeium.codeium",
"github.vscode-github-actions",
"Gruntfuggly.todo-tree",
"mhutchie.git-graph",
"ms-azuretools.vscode-docker",
"ms-python.mypy-type-checker",
"ms-python.python",
"Perkovec.emoji",
"samuelcolvin.jinjahtml",
"tamasfe.even-better-toml",
"ue.alphabetical-sorter",
"yzhang.markdown-all-in-one",
"esbenp.prettier-vscode",
"ms-pyright.pyright",
"-ms-python.vscode-pylance"
]
}
}
}
2 changes: 1 addition & 1 deletion projects/ecoindex_api/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ tasks:
start-backend:
internal: true
cmds:
- poetry run uvicorn ecoindex.backend.main:app --reload --reload-dir ../..
- poetry run uvicorn ecoindex.backend.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir ../..
silent: true

start-dev:
Expand Down
24 changes: 22 additions & 2 deletions projects/ecoindex_api/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions projects/ecoindex_api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ redis = "^5.0.1"
requests = "^2.32.2"
sqlmodel = "^0.0.14"
sentry-sdk = "^2.8.0"
setuptools = "^75.6.0"

[tool.poetry.group.backend.dependencies]
uvicorn = "^0.23.2"
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ update-values = "ecoindex.scripts:update_values"
filterwarnings = ["ignore::DeprecationWarning"]

[tool.mypy]
mypy_path = ["bases", "components"]
namespace_packages = true
explicit_package_bases = true
ignore_missing_imports = true
disallow_untyped_defs = false
exclude = ["test", "dist", "__pycache__"]
Expand All @@ -94,3 +97,6 @@ omit = ["test/*"]

[tool.coverage.report]
skip_empty = true

[tool.pyright]
extraPaths = ["bases", "components"]
Loading