recipes: Allow import of fnmatch

Bug: b/288464961
Change-Id: Ia0c5dc9ee7844a1f437a3ac574965b8c57cd47b9
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/152854
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/recipes/recipes.expected/cq_try.json b/recipes/recipes.expected/cq_try.json
index e0dd91a..b5f1f4b 100644
--- a/recipes/recipes.expected/cq_try.json
+++ b/recipes/recipes.expected/cq_try.json
@@ -1699,7 +1699,7 @@
       "[START_DIR]/co/recipes.py",
       "lint",
       "--allowlist",
-      "xml|configparser|io|urllib"
+      "configparser|fnmatch|io|urllib|xml"
     ],
     "cwd": "[START_DIR]/co",
     "luci_context": {
diff --git a/recipes/recipes.py b/recipes/recipes.py
index 4e273c1..bc681a8 100644
--- a/recipes/recipes.py
+++ b/recipes/recipes.py
@@ -112,7 +112,7 @@
 
     with api.step.defer_results():
         api.recipe_testing.run_lint(
-            checkout.root, allowlist='xml|configparser|io|urllib',
+            checkout.root, allowlist='configparser|fnmatch|io|urllib|xml',
         )
         api.recipe_testing.run_unit_tests(checkout.root)