Skip to content

Commit 89dccfc

Browse files
committed
TYP: pyproject.toml config for mypy and pyright
1 parent b9a833d commit 89dccfc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,33 @@ dev = [
5757
]
5858

5959

60+
[tool.mypy]
61+
exclude = [
62+
"^benchmarks/.*",
63+
"^doc/.*",
64+
"^docweb/.*",
65+
"^numpy_financial/tests/.*",
66+
]
67+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
68+
local_partial_types = true
69+
warn_unreachable = false
70+
warn_unused_ignores = true
71+
strict_bytes = true
72+
73+
74+
[tool.pyright]
75+
pythonPlatform = "All"
76+
include = ["numpy_financial"]
77+
exclude = [
78+
"benchmarks",
79+
"doc",
80+
"docweb",
81+
"numpy_financial/tests",
82+
]
83+
stubPath = "."
84+
typeCheckingMode = "standard"
85+
86+
6087
[tool.spin]
6188
package = 'numpy_financial'
6289

0 commit comments

Comments
 (0)