Skip to content

Commit 8b0b9a7

Browse files
committed
Add Python 3.12 support.
Also update pre-commit tool versions. Closes #2.
1 parent f96b9fe commit 8b0b9a7

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/tox-dev/pyproject-fmt
3-
rev: "1.1.0"
3+
rev: "1.2.0"
44
hooks:
55
- id: pyproject-fmt
66
# Ruff must be run before Black, so Black can reformat fixes made by Ruff
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.0.290
8+
rev: v0.0.292
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]

changelog.d/2.adding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added Python 3.12 support.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.9",
2727
"Programming Language :: Python :: 3.10",
2828
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
2930
"Typing :: Typed",
3031
]
3132
dynamic = [
@@ -80,7 +81,7 @@ packages = [
8081
]
8182

8283
[tool.hatch.envs.default]
83-
python = "3.11"
84+
python = "3.12"
8485

8586
[tool.hatch.envs.lint]
8687
dependencies = [

workflow-support/make_ci_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build_cmd_with_source() {
3838
build_cmd apt update --quiet=2
3939
build_cmd apt install --yes --quiet=2 "${lint_deps[@]}" "${proj_deps[@]}" "${proj_build_deps[@]}"
4040

41-
build_cmd pip3.11 install git+https://github.com/pypa/hatch
41+
build_cmd pip3.12 install git+https://github.com/pypa/hatch
4242

4343
for env in "${hatchenvs[@]}"; do
4444
# this looks weird... but it causes Hatch to create the env,

0 commit comments

Comments
 (0)