|
|
[project] |
|
|
name = "mypy-boto3-builder" |
|
|
version = "8.3.1" |
|
|
requires-python = ">=3.12" |
|
|
description = "Builder for boto3-stubs and types-aiobotocore" |
|
|
authors = [{ name = "Vlad Emelianov", email = "[email protected]" }] |
|
|
license = { file = "LICENSE" } |
|
|
readme = "README.md" |
|
|
keywords = ["boto3", "type-annotations", "pyright", "mypy", "boto3-stubs"] |
|
|
classifiers = [ |
|
|
"Development Status :: 5 - Production/Stable", |
|
|
"Environment :: Console", |
|
|
"License :: OSI Approved :: MIT License", |
|
|
"Natural Language :: English", |
|
|
"Operating System :: OS Independent", |
|
|
"Programming Language :: Python :: 3", |
|
|
"Programming Language :: Python :: 3.12", |
|
|
"Programming Language :: Python :: 3.13", |
|
|
"Programming Language :: Python :: 3.14", |
|
|
"Programming Language :: Python :: 3 :: Only", |
|
|
"Programming Language :: Python :: Implementation :: CPython", |
|
|
"Typing :: Typed", |
|
|
"Topic :: Software Development :: Libraries :: Python Modules", |
|
|
] |
|
|
dependencies = ["jinja2", "mdformat", "packaging", "requests", "ruff"] |
|
|
|
|
|
[project.optional-dependencies] |
|
|
build = ["setuptools"] |
|
|
check = ["boto3-stubs", "types-aiobotocore", "types-aioboto3"] |
|
|
|
|
|
[tool.uv] |
|
|
dev-dependencies = [ |
|
|
"aiohttp", |
|
|
"boto3-stubs", |
|
|
"boto3", |
|
|
"botocore-stubs", |
|
|
"cryptography", |
|
|
"istub", |
|
|
"mypy", |
|
|
"pyright", |
|
|
"pytest-cov", |
|
|
"pytest-mock", |
|
|
"pytest", |
|
|
"requests-mock", |
|
|
"twine", |
|
|
"types-certifi", |
|
|
"types-python-dateutil", |
|
|
"types-requests", |
|
|
"types-s3transfer", |
|
|
"types-setuptools", |
|
|
"types-six", |
|
|
"types-urllib3", |
|
|
"typing_extensions", |
|
|
"wheel", |
|
|
] |
|
|
package = true |
|
|
|
|
|
[project.scripts] |
|
|
mypy_boto3_builder = 'mypy_boto3_builder.main:main' |
|
|
|
|
|
[project.urls] |
|
|
Homepage = "https://github.com/youtype/mypy_boto3_builder" |
|
|
Documentation = "https://youtype.github.io/mypy_boto3_builder/" |
|
|
Repository = "https://github.com/youtype/mypy_boto3_builder" |
|
|
Changelog = "https://github.com/youtype/mypy_boto3_builder/releases" |
|
|
Issues = "https://github.com/youtype/mypy_boto3_builder/issues" |
|
|
|
|
|
[build-system] |
|
|
requires = ['setuptools'] |
|
|
build-backend = 'setuptools.build_meta' |
|
|
|
|
|
[tool.setuptools.packages.find] |
|
|
where = ["."] |
|
|
include = ["mypy_boto3_builder", "mypy_boto3_builder.*"] |
|
|
|
|
|
[tool.coverage.report] |
|
|
exclude_lines = [ |
|
|
"if self.debug:", |
|
|
"pragma: no cover", |
|
|
"raise NotImplementedError", |
|
|
"if __name__ == .__main__.:", |
|
|
"if TYPE_CHECKING:", |
|
|
"@overload", |
|
|
] |
|
|
ignore_errors = true |
|
|
omit = ["tests/*"] |
|
|
|
|
|
[tool.pyright] |
|
|
include = ["mypy_boto3_builder", "scripts"] |
|
|
exclude = ["tests"] |
|
|
ignore = [ |
|
|
".venv", |
|
|
"**/__pycache__", |
|
|
"**/build", |
|
|
"typestubs", |
|
|
"examples", |
|
|
"aio_examples", |
|
|
"mypy_boto3_builder/stubs_static", |
|
|
"**/test_*.py", |
|
|
] |
|
|
typeCheckingMode = "strict" |
|
|
reportMissingImports = "error" |
|
|
reportMissingTypeStubs = "error" |
|
|
reportMissingTypeArgument = "error" |
|
|
reportIncompatibleMethodOverride = "error" |
|
|
reportIncompatibleVariableOverride = "error" |
|
|
reportUnknownParameterType = "error" |
|
|
pythonVersion = "3.12" |
|
|
|
|
|
[tool.mypy] |
|
|
python_version = "3.12" |
|
|
warn_return_any = true |
|
|
warn_unused_ignores = false |
|
|
warn_unused_configs = true |
|
|
disallow_untyped_defs = true |
|
|
ignore_missing_imports = true |
|
|
ignore_errors = false |
|
|
exclude = ["^mypy_boto3_builder/stubs_static/.*"] |
|
|
|
|
|
[[tool.mypy.overrides]] |
|
|
module = "mypy-tests.*" |
|
|
ignore_errors = true |
|
|
|
|
|
[tool.ruff] |
|
|
exclude = [ |
|
|
".eggs", |
|
|
".git", |
|
|
".git-rewrite", |
|
|
".mypy_cache", |
|
|
".pytest_cache", |
|
|
".ruff_cache", |
|
|
".venv", |
|
|
".vscode", |
|
|
"build", |
|
|
"dist", |
|
|
] |
|
|
|
|
|
line-length = 100 |
|
|
indent-width = 4 |
|
|
target-version = "py310" |
|
|
|
|
|
[tool.ruff.lint] |
|
|
preview = true |
|
|
select = ["ALL"] |
|
|
ignore = [ |
|
|
"ANN101", |
|
|
"ANN102", |
|
|
"ARG002", |
|
|
"COM812", |
|
|
"D107", |
|
|
"D200", |
|
|
"D203", |
|
|
"D212", |
|
|
"D406", |
|
|
"D407", |
|
|
"D413", |
|
|
"D417", |
|
|
"DOC", |
|
|
"EM", |
|
|
"ERA001", |
|
|
"FIX001", |
|
|
"G004", |
|
|
"INP001", |
|
|
"ISC001", |
|
|
"PERF203", |
|
|
"PLR0904", |
|
|
"PLR0913", |
|
|
"PLR6301", |
|
|
"S404", |
|
|
"S603", |
|
|
"TD", |
|
|
"TRY003", |
|
|
] |
|
|
fixable = ["ALL"] |
|
|
unfixable = ["B"] |
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
|
|
exclude = ["*.pyi", "examples/*", "aio_examples/*"] |
|
|
allowed-confusables = ["’", "–"] |
|
|
|
|
|
[tool.ruff.lint.per-file-ignores] |
|
|
"test_*.py" = [ |
|
|
"D", |
|
|
"S101", |
|
|
"N803", |
|
|
"PLR2004", |
|
|
"CPY001", |
|
|
"SLF001", |
|
|
] |
|
|
"conftest.py" = [ |
|
|
"D", |
|
|
"S101", |
|
|
"N803", |
|
|
"PLR2004", |
|
|
"CPY001", |
|
|
"SLF001", |
|
|
] |
|
|
|
|
|
[tool.ruff.format] |
|
|
quote-style = "double" |
|
|
indent-style = "space" |
|
|
skip-magic-trailing-comma = false |
|
|
line-ending = "lf" |
|
|
docstring-code-format = false |
|
|
docstring-code-line-length = "dynamic" |
|
|
|
|
|
[tool.ruff.lint.flake8-copyright] |
|
|
|
|
|
min-file-size = 200 |
|
|
notice-rgx = "(?i)Copyright 2024" |
|
|
|
|
|
[tool.vulture] |
|
|
make_whitelist = true |
|
|
min_confidence = 60 |
|
|
paths = ["mypy_boto3_builder", "vulture_whitelist.txt"] |
|
|
|