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 #50

Merged
merged 15 commits into from
Jan 10, 2024
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
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 @@ -29,7 +29,7 @@ repos:
rev: "v3.3.1"
hooks:
- id: pyupgrade
args: [--py311-plus]
args: [--py312-plus]
- repo: https://github.com/psf/black
rev: "22.12.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
FROM python:3.12-slim-bookworm

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 @@ -21,7 +21,7 @@ source = ["."]
enable_error_code = [
"truthy-bool",
]
python_version = "3.11"
python_version = "3.12"
ignore_missing_imports = true

[tool.ruff]
Expand Down Expand Up @@ -50,7 +50,7 @@ ignore_missing_imports = true
"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,6 +1,6 @@
black~=22.12.0
click~=8.1.0
cookiecutter~=2.1.0
cookiecutter~=2.5.0
pip-tools~=6.12.0
pydantic~=1.10.0
types-python-slugify~=7.0.0
Expand Down
588 changes: 312 additions & 276 deletions requirements/common.txt

Large diffs are not rendered by default.

717 changes: 378 additions & 339 deletions requirements/local.txt

Large diffs are not rendered by default.

623 changes: 330 additions & 293 deletions requirements/test.txt

Large diffs are not rendered by default.

Loading