1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
[project]
name = "annotated-types"
description = "Reusable constraint types to use with typing.Annotated"
authors = [
{name = "Adrian Garcia Badaracco", email = "1755071+adriangb@users.noreply.github.com"},
{name = "Samuel Colvin", email = "s@muelcolvin.com"},
{name = "Zac Hatfield-Dodds", email = "zac@zhd.dev"},
]
readme = "README.md"
repository = "https://github.com/annotated-types/annotated-types"
license-files = { paths = ['LICENSE'] }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"Environment :: MacOS X",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.8"
dependencies = ["typing-extensions>=4.0.0; python_version<'3.9'"]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/annotated-types/annotated-types"
Source = "https://github.com/annotated-types/annotated-types"
Changelog = "https://github.com/annotated-types/annotated-types/releases"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "annotated_types/__init__.py"
[tool.pytest.ini_options]
testpaths = "tests"
filterwarnings = "error"
[tool.flake8]
max_line_length = 120
max_complexity = 10
ignore = ["E203", "W503"]
[tool.coverage.run]
source = ["annotated_types"]
branch = true
[tool.coverage.report]
precision = 2
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"raise NotImplemented",
"if TYPE_CHECKING:",
"@overload",
]
[tool.black]
color = true
line-length = 120
target-version = ["py310"]
skip-string-normalization = true
[tool.isort]
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
color_output = true
[tool.mypy]
strict = true
warn_return_any = false
show_error_codes = true
|