Skip to content

Commit 96c42ab

Browse files
committed
fix: scope mypy protobuf ignore to generated module
1 parent 34cebbd commit 96c42ab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ repos:
4747
rev: v1.7.1
4848
hooks:
4949
- id: mypy
50-
exclude: >
51-
(?x)^(
52-
cli\.py|
53-
roborock/map/proto/.*_pb2\.py
54-
)$
50+
exclude: cli.py
5551
additional_dependencies: [ "types-paho-mqtt" ]
5652
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
5753
rev: v9.23.0

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ line-length = 120
103103
"*/__init__.py" = ["F401"]
104104
"roborock/map/proto/*_pb2.py" = ["E501", "I001", "UP009"]
105105

106+
[[tool.mypy.overrides]]
107+
module = ["roborock.map.proto.*"]
108+
ignore_errors = true
109+
106110
[tool.pytest.ini_options]
107111
asyncio_mode = "auto"
108112
asyncio_default_fixture_loop_scope = "function"

0 commit comments

Comments
 (0)