commit | 18e775966d11b9356c735e0847e0ed3a6c4498ca | [log] [tgz] |
---|---|---|
author | Tim Laurence <timlaurence@google.com> | Mon Jul 18 23:46:43 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 18 23:46:43 2022 +0000 |
tree | 9d5ead67c15f56477ddc529bdc933dde702c318a | |
parent | fcfabcc4d5ef14b9c5ab601cb229bacb24d43c56 [diff] |
pw_presubmit: Refactor _Filter _Filter currently is coupled and it's use is not well defined. This makes it hard to extend and improve. This changes cleans this up and prepares the class to add more filter arguments. - Turn _Filter into FileFilter - Making this public allows extension and use across modules - Make FileFilter the only class that handles filenames - This makes it easier to extend - This reduces the number places paths are handled - Add deprcation warning to push use FileFilter - Remove path handling from CodeFormat - Update presubmit_checks() to accept FileFilter - Ensure git_repo.py file list functions to not return directories - Update typing information, looks like some of the code was written before type check intergration Change-Id: I8c85a324f4853c63395385d8a7c5f4ae69ab4096 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/100340 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Tim Laurence <timlaurence@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/.