mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
9df2f1ff13
* Apply isort * Tweak isort config * Add env.py as a known_first_party * Add one missing known first party * Make config compat with older isort versions * Add another comment * Revert pyproject setting
42 lines
957 B
TOML
42 lines
957 B
TOML
[build-system]
|
|
requires = ["setuptools>=42", "wheel", "cmake>=3.18", "ninja"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.check-manifest]
|
|
ignore = [
|
|
"tests/**",
|
|
"docs/**",
|
|
"tools/**",
|
|
"include/**",
|
|
".*",
|
|
"pybind11/include/**",
|
|
"pybind11/share/**",
|
|
"CMakeLists.txt",
|
|
"noxfile.py",
|
|
]
|
|
|
|
[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"
|
|
|
|
[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
|