Skip to content

Commit 6964d06

Browse files
Mike ProsserMike Prosser
authored andcommitted
add settings for mypy (excluding generated stub files)
1 parent 0eec50f commit 6964d06

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,20 @@ mypy-protobuf = ">=3.4"
2727
[build-system]
2828
requires = ["poetry-core>=1.8.0"]
2929
build-backend = "poetry.core.masonry.api"
30+
31+
[tool.mypy]
32+
files = "examples/,src/nipanel/,tests/"
33+
namespace_packages = true
34+
strict = true
35+
36+
[[tool.mypy.overrides]]
37+
module = [
38+
# https://github.com/ni/hightime/issues/4 - Add type annotations
39+
"hightime.*",
40+
]
41+
ignore_missing_imports = true
42+
43+
[tool.bandit]
44+
skips = [
45+
"B101", # assert_used
46+
]

0 commit comments

Comments
 (0)