commit | 72428388e0005d4ec266bf52076093814b77c9ce | [log] [tgz] |
---|---|---|
author | Rob Mohr <mohrr@google.com> | Fri Feb 03 19:31:34 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 03 19:31:34 2023 +0000 |
tree | 036cafdbca7c352b5a036debe9d9ed3c6a23d7e0 | |
parent | a6c46f299f6cd0fc9deae7cf597be9274496b4f8 [diff] |
pw_presubmit: Add package_root to FormatContext Add a package_root member to FormatContext, matching PresubmitContext. This allows formatting steps to install packages if necessary. Also moved around a couple things. The install_package function is moved from build.py to presubmit.py, since it doesn't have anything to do with building. And the FormatContext class is moved from format_code.py to presubmit.py so functions in presubmit.py can operate on Union[FormatContext, PresubmitContext] and not just PresubmitContext. Bug: b/267680540 Change-Id: I0b57e0ead53c0c7de3a722b951f6617767ced65b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/127410 Reviewed-by: Ben Lawson <benlawson@google.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Commit-Queue: Rob Mohr <mohrr@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.