From 0ed92aeeaac054dd119684850c35ff37185b074c Mon Sep 17 00:00:00 2001 From: Rob Mohr Date: Fri, 28 Oct 2022 20:35:09 +0000 Subject: [PATCH] pw_presubmit: Disable todo check for todo check test Change-Id: I4bb472e218b5b57002424db675c359d192878b05 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/115230 Reviewed-by: Keir Mierle Commit-Queue: Auto-Submit Pigweed-Auto-Submit: Rob Mohr --- pw_presubmit/py/pw_presubmit/pigweed_presubmit.py | 1 - pw_presubmit/py/todo_check_test.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py index 7ff4071d0a..48572fd1c1 100755 --- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py +++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py @@ -906,7 +906,6 @@ def static_analysis(ctx: PresubmitContext): r'\bpw_metric/metric_service_pwpb.cc$', r'\bpw_module/py/pw_module/check.py$', r'\bpw_package/py/pw_package/packages/chromium_verifier.py$', - r'\bpw_presubmit/py/todo_check_test.py$', r'\bpw_protobuf/encoder.cc$', r'\bpw_rpc/docs.rst$', r'\bpw_rpc/py/pw_rpc/codegen.py$', diff --git a/pw_presubmit/py/todo_check_test.py b/pw_presubmit/py/todo_check_test.py index 6186858c61..69e196ea57 100644 --- a/pw_presubmit/py/todo_check_test.py +++ b/pw_presubmit/py/todo_check_test.py @@ -22,6 +22,7 @@ from pw_presubmit import todo_check # pylint: disable=attribute-defined-outside-init +# todo-check: disable class TestTodoCheck(unittest.TestCase): @@ -150,3 +151,5 @@ def test_bare_bugsusers(self) -> None: if __name__ == '__main__': unittest.main() + +# todo-check: enable