Files
oslotest/pyproject.toml
Stephen Finucane 3e962ced54 Add mypy
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I0b33521cff0b4e80c537cd151c1985339ce8befb
2025-12-17 18:14:33 +00:00

68 lines
1.7 KiB
TOML

[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "oslotest"
description = "Oslo test framework"
readme = "README.rst"
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
requires-python = ">=3.10"
dynamic = ["version", "dependencies"]
classifiers = [
"Environment :: OpenStack",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"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",
]
[project.urls]
Homepage = "https://docs.openstack.org/oslotest"
Repository = "https://opendev.org/openstack/oslotest"
[tool.setuptools]
packages = [
"oslotest"
]
script-files = [
"tools/oslo_debug_helper",
]
[tool.mypy]
python_version = "3.10"
show_column_numbers = true
show_error_context = true
strict = true
exclude = '(?x)(doc | releasenotes)'
[[tool.mypy.overrides]]
module = ["oslotest.tests.*"]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_subclassing_any = 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", "UP"]
ignore = [
# we only use asserts for type narrowing
"S101",
]