Files
oslo.limit/pyproject.toml
Stephen Finucane be21552ad7 Add typing classifier
This is parsed by PyPI.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Iccc9d5dc51c505f03311f71cde31c11f0eaee01d
2026-01-05 15:00:41 +00:00

74 lines
2.0 KiB
TOML

[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "oslo.limit"
description = "Limit enforcement library to assist with quota calculation."
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {text = "Apache-2.0"}
dynamic = ["version", "dependencies"]
requires-python = ">=3.10"
classifiers = [
"Environment :: OpenStack",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://docs.openstack.org/oslo.limit"
Repository = "https://opendev.org/openstack/oslo.limit"
[project.entry-points."oslo.config.opts"]
"oslo.limit" = "oslo_limit.opts:list_opts"
[tool.setuptools]
packages = [
"oslo_limit"
]
[tool.mypy]
python_version = "3.10"
show_column_numbers = true
show_error_context = true
strict = true
ignore_missing_imports = true
exclude = '(?x)(doc | releasenotes)'
[[tool.mypy.overrides]]
module = ["oslo_limit.tests.*"]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_subclassing_any = false
disallow_any_generics = false
[tool.ruff]
line-length = 79
[tool.ruff.format]
quote-style = "preserve"
docstring-code-format = true
[tool.ruff.lint]
select = ["E4", "E5", "E7", "E9", "F", "G", "LOG", "S", "RUF", "UP", "W"]
ignore = [
"S101", # asserts are only used for type narrowing
]
[tool.ruff.lint.per-file-ignores]
"oslo_limit/tests/*" = ["S"]