diff --git a/.pylintrc-local.yml b/.pylintrc-local.yml
index 5a0594d4a8e1182cd5b80a3b3976c2232555deb8..fc39119ac7efa7eee926d72d9449057bf0f5c7c5 100644
--- a/.pylintrc-local.yml
+++ b/.pylintrc-local.yml
@@ -3,3 +3,5 @@
   - matplotlib
   - ipykernel
   - ply
+  - pygments.lexers
+  - pygments.formatters
diff --git a/setup.cfg b/setup.cfg
index 4d2c82791823b3c8fef3084b88d4ea87931da199..dd4ef87381a76f439e00d960d50ca5ece156123f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -30,3 +30,6 @@ ignore_missing_imports = True
 
 [mypy-pyopencl]
 ignore_missing_imports = True
+
+[mypy-pygments.*]
+ignore_missing_imports = True