pw_build: Remove deprecated Python lint option The 'lint' boolean was replaced by a 'static_analysis' list. Change-Id: I29e2a7722ad48133ef00664f908dc8fcec9abe46 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/45360 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
diff --git a/pw_build/python.gni b/pw_build/python.gni index a68da03..de56f91 100644 --- a/pw_build/python.gni +++ b/pw_build/python.gni
@@ -244,19 +244,6 @@ _static_analysis = invoker.static_analysis } - # TODO(hepler): Remove support for the lint option. - if (defined(invoker.lint)) { - assert(!defined(invoker.static_analysis), - "'lint' is deprecated; use 'static_analysis' instead") - - # Only allow 'lint = false', for backwards compatibility. - assert(invoker.lint == false, "'lint' is deprecated; use 'static_analysis'") - print("WARNING:", - "The 'lint' option for pw_python_package is deprecated.", - "Instead, use 'static_analysis = []' to disable linting.") - _static_analysis = [] - } - foreach(_tool, _static_analysis) { assert(_supported_static_analysis_tools + [ _tool ] - [ _tool ] != _supported_static_analysis_tools,