Skip to content

Commit

Permalink
exclude only the files that mypy has trouble with
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Apr 25, 2024
1 parent 98c195e commit c4487e4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ src_paths = ["src"]
omit = ["*_pb2_grpc.py", "*_pb2.py", "tests/*", "examples/*", "src/buf/*"]

[tool.mypy]
exclude = ['^src/buf', '^tests/examples', '^src/dispatch/sdk']
exclude = [
'^src/buf',
'^tests/examples',
# mypy 1.10.0 reports false positives for these two files:
# src/dispatch/sdk/v1/function_pb2_grpc.py:74: error: Module has no attribute "experimental" [attr-defined]
# src/dispatch/sdk/v1/dispatch_pb2_grpc.py:80: error: Module has no attribute "experimental" [attr-defined]
'^src/dispatch/sdk/v1/function_pb2_grpc.py',
'^src/dispatch/sdk/v1/dispatch_pb2_grpc.py',
]

[tool.pytest.ini_options]
testpaths = ['tests']

0 comments on commit c4487e4

Please sign in to comment.