Skip to content

Commit

Permalink
TG-1012 Upgrade to Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
niccolomineo committed Jan 10, 2024
1 parent 9364b0c commit b1ba00b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
target-version = ["py311"]
target-version = ["py312"]

[tool.coverage.html]
title = "Talos - Coverage"
Expand All @@ -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 = [
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1ba00b

Please sign in to comment.