2020-09-16 21:13:41 +00:00
|
|
|
[build-system]
|
2020-09-30 19:48:08 +00:00
|
|
|
requires = ["setuptools>=42", "wheel", "cmake>=3.18", "ninja"]
|
2020-09-16 21:13:41 +00:00
|
|
|
build-backend = "setuptools.build_meta"
|
2021-07-12 18:58:59 +00:00
|
|
|
|
|
|
|
[tool.check-manifest]
|
|
|
|
ignore = [
|
|
|
|
"tests/**",
|
|
|
|
"docs/**",
|
|
|
|
"tools/**",
|
|
|
|
"include/**",
|
|
|
|
".*",
|
|
|
|
"pybind11/include/**",
|
|
|
|
"pybind11/share/**",
|
|
|
|
"CMakeLists.txt",
|
|
|
|
"noxfile.py",
|
|
|
|
]
|
|
|
|
|
2021-08-13 16:37:05 +00:00
|
|
|
[tool.isort]
|
|
|
|
# Needs the compiled .so modules and env.py from tests
|
|
|
|
known_first_party = "env,pybind11_cross_module_tests,pybind11_tests,"
|
|
|
|
# For black compatibility
|
|
|
|
profile = "black"
|
|
|
|
|
2021-07-12 18:58:59 +00:00
|
|
|
[tool.mypy]
|
|
|
|
files = "pybind11"
|
|
|
|
python_version = "2.7"
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
|
|
|
disallow_any_generics = true
|
|
|
|
disallow_subclassing_any = true
|
|
|
|
disallow_untyped_calls = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
disallow_incomplete_defs = true
|
|
|
|
check_untyped_defs = true
|
|
|
|
disallow_untyped_decorators = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_unused_ignores = true
|
|
|
|
warn_return_any = true
|
|
|
|
no_implicit_reexport = true
|
|
|
|
strict_equality = true
|