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
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
"Sideview"
],
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8",
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true
},
"ruff.lint.args": ["--line-length=120", "--ignore=E402"],
"editor.defaultFormatter": "ms-python.autopep8",
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ WebApp with API and endpoint for [CocktailBerry](https://github.com/AndreWohnsla

## Getting Started

Either cd into `frontend` or `backend` and run `pip install -r requirements.txt` or use poetry in main folder to install everything for both apps with [`uv install`](https://docs.astral.sh/uv/).
Either cd into `frontend` or `backend` and run `pip install -r requirements.txt` or use uv in main folder to install everything for both apps with [`uv install`](https://docs.astral.sh/uv/).
Then in the corresponding folder run:

```bash
# omit poetry run if using normal python
# omit uv run if using normal python
uv run uvicorn app:app --reload # backend
uv run streamlit run streamlit_app.py # frontend, use in main folder
```
Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ authors = [{name="Andre Wohnsland", email="<50302161+AndreWohnsland@users.norepl
license = "MIT"
dependencies = [
"beanie>=1.29.0",
"fastapi>=0.115.6",
"fastapi>=0.115.12",
"fastapi-utilities>=0.3",
"motor[srv]>=3.6.0",
"motor[srv]>=3.7.0",
"pandas>=2.2.3",
"plotly>=5.24.1",
"python-dotenv>=1.0.1",
"plotly>=6.0.1",
"python-dotenv>=1.1.0",
"requests>=2.32.3",
"streamlit>=1.41.1",
"uvicorn>=0.34.0",
"streamlit>=1.44.1",
"uvicorn>=0.34.2",
]
requires-python = ">=3.10"
requires-python = ">=3.12"

[tool.uv]
dev-dependencies = [
"jupyterlab>=4.3.4",
"mypy>=1.14.1",
"mypy>=1.15.0",
"ruff>=0.9.1",
]

Expand All @@ -33,7 +33,7 @@ extend-ignore = "E402"
# don't check import order in the migration script
line-length = 120
exclude = ["ui_elements", "addon_skeleton"]
target-version = "py310"
target-version = "py312"

[tool.ruff.lint]
extend-safe-fixes = [
Expand Down
Loading