From b1ba00b15d6ee1ce1ffd99295d3b67490d28c729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Mineo?= Date: Mon, 8 Jan 2024 15:05:54 +0100 Subject: [PATCH] TG-1012 Upgrade to Python 3.12 --- .github/workflows/test.yml | 6 +++--- .pre-commit-config.yaml | 4 ++-- Dockerfile | 2 +- pyproject.toml | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 578eedf7..3ec0228f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,10 +18,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.11 - uses: actions/setup-python@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python -m pip install -r requirements/test.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 164fb38b..76f942be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ default_language_version: - python: python3.11 + python: python3.12 exclude: ^(\{\{cookiecutter\.project_dirname\}\}.*)$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -30,7 +30,7 @@ repos: rev: "v3.3.1" hooks: - id: pyupgrade - args: [--py311-plus] + args: [--py312-plus] - repo: https://github.com/psf/black rev: "23.1.0" hooks: diff --git a/Dockerfile b/Dockerfile index b43caf5a..0e14b92a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim-bullseye AS base +FROM python:3.12-slim-bullseye AS base ARG DEBIAN_FRONTEND=noninteractive ARG OUTPUT_BASE_DIR=/data diff --git a/pyproject.toml b/pyproject.toml index 5644eb38..b6941fcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.black] -target-version = ["py311"] +target-version = ["py312"] [tool.coverage.html] title = "Talos - Coverage" @@ -22,7 +22,7 @@ enable_error_code = [ "truthy-bool", ] ignore_missing_imports = true -python_version = "3.11" +python_version = "3.12" [tool.ruff] extend-exclude = [ @@ -50,7 +50,7 @@ python_version = "3.11" "E501", ] select = ["B", "C", "D", "E", "F", "I", "W", "B9"] - target-version = "py311" + target-version = "py312" [tool.ruff.isort] combine-as-imports = true