Skip to content

Commit 15bc3ae

Browse files
committed
Pin to max Python 3.12, move around some ruff config
Note that the Docker image we use has Python 3.11, so functions will always run with that version regardless of whether you have 3.12 locally. (Unless you choose to use a different base image.) The ruff config tweaks are because they moved some config around with a newer version that was updated by renovate a while back. Signed-off-by: Nic Cope <[email protected]>
1 parent 687024f commit 15bc3ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ build-backend = "hatchling.build"
66
name = "function"
77
description = 'A composition function'
88
readme = "README.md"
9-
requires-python = ">=3.11"
9+
requires-python = ">=3.11,<3.13"
1010
license = "Apache-2.0"
1111
keywords = []
1212
authors = [{ name = "Crossplane Maintainers", email = "[email protected]" }]
1313
classifiers = [
1414
"Development Status :: 4 - Beta",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
1718
]
1819

1920
dependencies = [
@@ -66,6 +67,8 @@ unit = "python -m unittest tests/*.py"
6667
[tool.ruff]
6768
target-version = "py311"
6869
exclude = ["function/proto/*"]
70+
71+
[tool.ruff.lint]
6972
select = [
7073
"A",
7174
"ARG",
@@ -101,7 +104,7 @@ ignore = ["ISC001"] # Ruff warns this is incompatible with ruff format.
101104
[tool.ruff.lint.per-file-ignores]
102105
"tests/*" = ["D"] # Don't require docstrings for tests.
103106

104-
[tool.ruff.isort]
107+
[tool.ruff.lint.isort]
105108
known-first-party = ["function"]
106109

107110
[tool.ruff.lint.pydocstyle]

0 commit comments

Comments
 (0)