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: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches: ['main']
workflow_dispatch:
env:
PYTHON_VERSION: '3.13.1'
POETRY_VERSION: '2.1.4'
PYTHON_VERSION: '3.14.3'
POETRY_VERSION: '2.3.2'
LINT_PATHS: >
app
tests
Expand Down
2 changes: 0 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"ms-python.black-formatter",
"ms-azuretools.vscode-docker",
"editorconfig.editorconfig",
"visualstudioexptteam.vscodeintellicode",
"visualstudioexptteam.intellicode-api-usage-examples",
"ms-python.isort",
"ms-ossdata.vscode-postgresql",
"ms-python.vscode-pylance",
Expand Down
33 changes: 17 additions & 16 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ packages = [{ include = "python_open_restaurant_fastapi" }]
package-mode = false

[tool.poetry.dependencies]
python = "^3.13.1"
python = "^3.14.3"
alembic = "^1.18.4"
alembic-utils = "^0.8.8"
asyncpg = "^0.31.0"
Expand Down
27 changes: 23 additions & 4 deletions setup
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
#!/bin/bash
git submodule update --init --remote --force
rebuild_venv=$1
rebuild_venv="${rebuild_venv:-0}"
rebuild_venv=0
if [ $# -gt 0 ]; then
if [ "$1" = "0" ] || [ "$1" = "1" ]; then
rebuild_venv="$1"
shift
elif [[ "$1" != -* ]]; then
echo "Invalid rebuild_venv positional argument: ($1). Valid values are [0, 1]" >&2
exit 2
fi
fi
source utility-repo-scripts/setup_python_app.sh \
--debug \
--python_version="3.14.3" \
--package_manager="poetry" \
--rebuild_venv="$rebuild_venv" \
--python_formatter=black \
--include_jumanji_house \
--include_prettier \
--include_isort \
--isort_profile="black" \
--python_formatter="black" \
--pylint_enabled \
--flake8_enabled \
--mypy_enabled \
--pytest_enabled \
--pre_commit_autoupdate \
--overwrite_vscode_launch \
--line_length=125
--line_length=125 \
"$@"