Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TG-1012 Upgrade to Python 3.12 #250

Merged
merged 6 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
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
niccolomineo marked this conversation as resolved.
Show resolved Hide resolved
- name: Set up Python 3.11
uses: actions/setup-python@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
niccolomineo marked this conversation as resolved.
Show resolved Hide resolved
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-bookworm 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
2 changes: 1 addition & 1 deletion requirements/common.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
click~=8.1.0
cookiecutter~=2.1.0
cookiecutter~=2.5.0
pydantic~=1.10.0
python-slugify~=8.0.0
validators~=0.20.0
546 changes: 291 additions & 255 deletions requirements/common.txt

Large diffs are not rendered by default.

771 changes: 405 additions & 366 deletions requirements/local.txt

Large diffs are not rendered by default.

635 changes: 336 additions & 299 deletions requirements/test.txt

Large diffs are not rendered by default.