pre-commit
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index e1d1b77..749e3b9 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -1047,7 +1047,9 @@
                     return None
 
                 dotted_modname = get_import_name(importnode, modname)
-                self.add_message("import-error", args=repr(dotted_modname), node=importnode)
+                self.add_message(
+                    "import-error", args=repr(dotted_modname), node=importnode
+                )
             else:
                 # Re-raise other AttributeErrors
                 raise astroid.AstroidError from e
diff --git a/tests/functional/i/import_mypy_extension.py b/tests/functional/i/import_mypy_extension.py
index a4f0e6a..c0644a5 100644
--- a/tests/functional/i/import_mypy_extension.py
+++ b/tests/functional/i/import_mypy_extension.py
@@ -9,4 +9,4 @@
 # pylint: disable=unused-import
 
 # This should not crash when using --extension-pkg-allow-list=mypy
-import mypy.build  # [import-error]
\ No newline at end of file
+import mypy.build  # [import-error]
diff --git a/tests/functional/i/import_mypy_extension.rc b/tests/functional/i/import_mypy_extension.rc
index 0aaa97d..14c2a37 100644
--- a/tests/functional/i/import_mypy_extension.rc
+++ b/tests/functional/i/import_mypy_extension.rc
@@ -2,4 +2,4 @@
 disable=C,R,W
 
 [TYPECHECK]
-extension-pkg-allow-list=mypy
\ No newline at end of file
+extension-pkg-allow-list=mypy
diff --git a/tests/functional/i/import_mypy_extension.txt b/tests/functional/i/import_mypy_extension.txt
index 9fb5b47..d055de3 100644
--- a/tests/functional/i/import_mypy_extension.txt
+++ b/tests/functional/i/import_mypy_extension.txt
@@ -1 +1 @@
-import-error:4:0:4:17::Unable to import 'mypy.build':UNDEFINED
\ No newline at end of file
+import-error:12:0:12:17::Unable to import 'mypy.build':UNDEFINED