Skip to content

Commit 11e12fe

Browse files
committed
chore: move some config to pyproject.toml
1 parent 84fdadf commit 11e12fe

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

pyproject.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
11
[build-system]
22
requires = ["setuptools>=42", "wheel", "cmake>=3.18", "ninja"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.check-manifest]
6+
ignore = [
7+
"tests/**",
8+
"docs/**",
9+
"tools/**",
10+
"include/**",
11+
".*",
12+
"pybind11/include/**",
13+
"pybind11/share/**",
14+
"CMakeLists.txt",
15+
"noxfile.py",
16+
]
17+
18+
[tool.mypy]
19+
files = "pybind11"
20+
python_version = "2.7"
21+
warn_unused_configs = true
22+
23+
disallow_any_generics = true
24+
disallow_subclassing_any = true
25+
disallow_untyped_calls = true
26+
disallow_untyped_defs = true
27+
disallow_incomplete_defs = true
28+
check_untyped_defs = true
29+
disallow_untyped_decorators = true
30+
no_implicit_optional = true
31+
warn_redundant_casts = true
32+
warn_unused_ignores = true
33+
warn_return_any = true
34+
no_implicit_reexport = true
35+
strict_equality = true

setup.cfg

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,6 @@ zip_safe = False
3737
[bdist_wheel]
3838
universal=1
3939

40-
[check-manifest]
41-
ignore =
42-
tests/**
43-
docs/**
44-
tools/**
45-
include/**
46-
.*
47-
pybind11/include/**
48-
pybind11/share/**
49-
CMakeLists.txt
50-
noxfile.py
51-
5240

5341
[flake8]
5442
max-line-length = 99
@@ -62,25 +50,6 @@ ignore =
6250
# Black conflict
6351
W503, E203
6452

65-
[mypy]
66-
files = pybind11
67-
python_version = 2.7
68-
warn_unused_configs = True
69-
70-
# Currently (0.800) identical to --strict
71-
disallow_any_generics = True
72-
disallow_subclassing_any = True
73-
disallow_untyped_calls = True
74-
disallow_untyped_defs = True
75-
disallow_incomplete_defs = True
76-
check_untyped_defs = True
77-
disallow_untyped_decorators = True
78-
no_implicit_optional = True
79-
warn_redundant_casts = True
80-
warn_unused_ignores = True
81-
warn_return_any = True
82-
no_implicit_reexport = True
83-
strict_equality = True
8453

8554
[tool:pytest]
8655
timeout = 300

0 commit comments

Comments
 (0)