Skip to main content

Add an exception for F821 “undefined name”

ID
d490ef3
date
2024-05-19 20:47:07+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
e129e46
message
Add an exception for F821 "undefined name"
changed files
1 file, 5 additions, 1 deletion

Changed files

.github/workflows/test.yml (1007) → .github/workflows/test.yml (1247)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c0f149e..ac7744b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -34,7 +34,11 @@ jobs:
         # (the "ish" is intentional; see https://www.youtube.com/watch?v=wf-BqAjZb8M)
         #
         # E203/W503/W504 = this is where black and flake8 conflict, see https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated
-        flake8 --ignore=E501,E203,W503 --extend-select=W504
+        #
+        # F821 = undefined name, which I need because there are bits in my
+        # Python expansions that are used by Alfred and which Python doesn't
+        # know what to do with, imports I expect will be elsewhere, etc.
+        flake8 --ignore=E501,E203,W503,F821 --extend-select=W504
 
     - name: Check types
       run: mypy *.py expansions/*.py