Add lintformat presubmit program

This will let us add or remove checks without changing the LUCI config.
Also, it makes the LUCI config simpler.

Requires: 55982
Change-Id: I52cfa067e09a712fb77b373ec3415f399a14dbfa
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/55981
Commit-Queue: Rob Mohr <mohrr@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
diff --git a/tools/pigweed_experimental_tools/presubmit_checks.py b/tools/pigweed_experimental_tools/presubmit_checks.py
index 370d2a7..1458ff4 100755
--- a/tools/pigweed_experimental_tools/presubmit_checks.py
+++ b/tools/pigweed_experimental_tools/presubmit_checks.py
@@ -113,6 +113,13 @@
     format_code.presubmit_checks(exclude=PATH_EXCLUSIONS),
 )
 
+LINTFORMAT = (
+    # Use the upstream formatting checks, with custom path filters applied.
+    format_code.presubmit_checks(exclude=PATH_EXCLUSIONS),
+    python_checks.lint_checks(exclude=PATH_EXCLUSIONS),
+    pragma_once,
+)
+
 FULL = (
     pragma_once,
     QUICK,  # Add all checks from the 'quick' program
@@ -123,6 +130,7 @@
 PROGRAMS = pw_presubmit.Programs(
     quick=QUICK,
     full=FULL,
+    lintformat=LINTFORMAT,
     other_checks=OTHER_CHECKS,
 )