diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f30baea..34c083cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.11'] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b3148bae..2fe2bb02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: rev: 23.9.1 hooks: - id: black - language_version: python3.11 + language_version: python3.12 - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.0.292 diff --git a/app/Dockerfile b/app/Dockerfile index 10557f32..9fc9daa2 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-alpine +FROM python:3.12-alpine ENV PYTHONUNBUFFERED 1 diff --git a/app/Dockerfile-prod b/app/Dockerfile-prod index 2b4665d9..b322137c 100644 --- a/app/Dockerfile-prod +++ b/app/Dockerfile-prod @@ -10,7 +10,7 @@ COPY ./frontend/ /app/ RUN npm run build -FROM python:3.11-alpine +FROM python:3.12-alpine ENV PYTHONUNBUFFERED 1 diff --git a/app/config.toml b/app/config.toml index f04ea7b3..cced36c4 100644 --- a/app/config.toml +++ b/app/config.toml @@ -1,8 +1,8 @@ debug = "1" enable-prometheus = "1" -default-python-version = "3.11" -python-versions = ["3.9", "3.10", "3.11"] +default-python-version = "3.12" +python-versions = ["3.9", "3.10", "3.11", "3.12"] mypy-versions = [ ["mypy latest", "latest"], ["basedmypy latest", "basedmypy-latest"], diff --git a/app/mypy_playground/app.py b/app/mypy_playground/app.py index 4af5c124..f3920704 100644 --- a/app/mypy_playground/app.py +++ b/app/mypy_playground/app.py @@ -34,7 +34,7 @@ define( "default_python_version", type=str, - default="3.11", + default="3.12", help="Default Python version", ) define( diff --git a/app/pyproject.toml b/app/pyproject.toml index bd4a508a..32cae727 100644 --- a/app/pyproject.toml +++ b/app/pyproject.toml @@ -1,5 +1,5 @@ [tool.mypy] -python_version = '3.11' +python_version = '3.12' strict = true [[tool.mypy.overrides]] diff --git a/app/requirements.dev.in b/app/requirements.dev.in index 1f810a4c..8dfb3470 100644 --- a/app/requirements.dev.in +++ b/app/requirements.dev.in @@ -1,5 +1,6 @@ -c requirements.txt mypy +pip-tools pytest pytest-cov pytest-mock diff --git a/app/requirements.dev.txt b/app/requirements.dev.txt index 52b23b84..83f47f6f 100644 --- a/app/requirements.dev.txt +++ b/app/requirements.dev.txt @@ -1,9 +1,13 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # pip-compile requirements.dev.in # +build==1.0.3 + # via pip-tools +click==8.1.7 + # via pip-tools coverage[toml]==7.2.7 # via pytest-cov iniconfig==2.0.0 @@ -13,9 +17,15 @@ mypy==1.4.1 mypy-extensions==1.0.0 # via mypy packaging==23.1 - # via pytest + # via + # build + # pytest +pip-tools==7.3.0 + # via -r requirements.dev.in pluggy==1.2.0 # via pytest +pyproject-hooks==1.0.0 + # via build pytest==7.4.0 # via # -r requirements.dev.in @@ -47,6 +57,9 @@ typing-extensions==4.7.0 # via # -c requirements.txt # mypy +wheel==0.41.2 + # via pip-tools # The following packages are considered to be unsafe in a requirements file: +# pip # setuptools diff --git a/app/requirements.txt b/app/requirements.txt index a338e7a4..037a68a4 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # pip-compile @@ -20,7 +20,7 @@ charset-normalizer==3.1.0 # via requests dataclasses==0.6 # via -r requirements.in -frozenlist==1.3.3 +frozenlist==1.4.1 # via # aiohttp # aiosignal diff --git a/app/setup.cfg b/app/setup.cfg index 2d8d0c19..2be50c2d 100644 --- a/app/setup.cfg +++ b/app/setup.cfg @@ -7,7 +7,7 @@ skipsdist = true [gh-actions] python = - 3.11: mypy, pre-commit, py311 + 3.12: mypy, pre-commit, py312 [testenv] deps =