pw_build: Replace 'lint' with 'static_analysis' in pw_python_package
- Move the lint actions to separate templates.
- Support specifying which static analysis tools to run in the
'static_analysis' argument.
- Support 'static_analysis' and related options in pw_python_script.
Change-Id: I33e0a048154b60fc0088c74e25ff95e7944d9d75
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38140
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
diff --git a/pw_protobuf_compiler/proto.gni b/pw_protobuf_compiler/proto.gni
index 08fff31..1a74163 100644
--- a/pw_protobuf_compiler/proto.gni
+++ b/pw_protobuf_compiler/proto.gni
@@ -306,7 +306,7 @@
strip_prefix = "${invoker.base_out_dir}/python"
python_deps = invoker.deps
other_deps = [ ":$target_name._gen($default_toolchain)" ]
- lint = false
+ static_analysis = []
_pw_module_as_package = invoker.module_as_package != ""
}