Skip to content

Commit dd994ec

Browse files
authored
Merge pull request #350 from mrlonis/updates
Updating submodule, python version, and setup script
2 parents d98ecf0 + 1b70fe9 commit dd994ec

6 files changed

Lines changed: 44 additions & 26 deletions

File tree

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
branches: ['main']
77
workflow_dispatch:
88
env:
9-
PYTHON_VERSION: '3.13.1'
10-
POETRY_VERSION: '2.1.4'
9+
PYTHON_VERSION: '3.14.3'
10+
POETRY_VERSION: '2.3.2'
1111
LINT_PATHS: >
1212
app
1313
tests

.vscode/extensions.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"ms-python.black-formatter",
44
"ms-azuretools.vscode-docker",
55
"editorconfig.editorconfig",
6-
"visualstudioexptteam.vscodeintellicode",
7-
"visualstudioexptteam.intellicode-api-usage-examples",
86
"ms-python.isort",
97
"ms-ossdata.vscode-postgresql",
108
"ms-python.vscode-pylance",

poetry.lock

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ packages = [{ include = "python_open_restaurant_fastapi" }]
99
package-mode = false
1010

1111
[tool.poetry.dependencies]
12-
python = "^3.13.1"
12+
python = "^3.14.3"
1313
alembic = "^1.18.4"
1414
alembic-utils = "^0.8.8"
1515
asyncpg = "^0.31.0"

setup

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
#!/bin/bash
22
git submodule update --init --remote --force
3-
rebuild_venv=$1
4-
rebuild_venv="${rebuild_venv:-0}"
3+
rebuild_venv=0
4+
if [ $# -gt 0 ]; then
5+
if [ "$1" = "0" ] || [ "$1" = "1" ]; then
6+
rebuild_venv="$1"
7+
shift
8+
elif [[ "$1" != -* ]]; then
9+
echo "Invalid rebuild_venv positional argument: ($1). Valid values are [0, 1]" >&2
10+
exit 2
11+
fi
12+
fi
513
source utility-repo-scripts/setup_python_app.sh \
614
--debug \
15+
--python_version="3.14.3" \
716
--package_manager="poetry" \
817
--rebuild_venv="$rebuild_venv" \
9-
--python_formatter=black \
18+
--include_jumanji_house \
19+
--include_prettier \
20+
--include_isort \
21+
--isort_profile="black" \
22+
--python_formatter="black" \
23+
--pylint_enabled \
24+
--flake8_enabled \
25+
--mypy_enabled \
26+
--pytest_enabled \
27+
--pre_commit_autoupdate \
1028
--overwrite_vscode_launch \
11-
--line_length=125
29+
--line_length=125 \
30+
"$@"

0 commit comments

Comments
 (0)