Merge pull request #67 from negz/rough

Pin to max Python 3.12, move around some ruff config
This commit is contained in:
Bob Haddleton 2024-08-08 18:01:19 -04:00 committed by GitHub
commit 2753c80138
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ build-backend = "hatchling.build"
name = "function" name = "function"
description = 'A composition function' description = 'A composition function'
readme = "README.md" readme = "README.md"
requires-python = ">=3.11" requires-python = ">=3.11,<3.13"
license = "Apache-2.0" license = "Apache-2.0"
keywords = [] keywords = []
authors = [{ name = "Crossplane Maintainers", email = "info@crossplane.io" }] authors = [{ name = "Crossplane Maintainers", email = "info@crossplane.io" }]
@ -14,6 +14,7 @@ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
] ]
dependencies = [ dependencies = [
@ -66,6 +67,8 @@ unit = "python -m unittest tests/*.py"
[tool.ruff] [tool.ruff]
target-version = "py311" target-version = "py311"
exclude = ["function/proto/*"] exclude = ["function/proto/*"]
[tool.ruff.lint]
select = [ select = [
"A", "A",
"ARG", "ARG",
@ -101,7 +104,7 @@ ignore = ["ISC001"] # Ruff warns this is incompatible with ruff format.
[tool.ruff.lint.per-file-ignores] [tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"] # Don't require docstrings for tests. "tests/*" = ["D"] # Don't require docstrings for tests.
[tool.ruff.isort] [tool.ruff.lint.isort]
known-first-party = ["function"] known-first-party = ["function"]
[tool.ruff.lint.pydocstyle] [tool.ruff.lint.pydocstyle]