diff --git a/Makefile b/Makefile index 555bf8b..acb16c4 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ check: black . pytest flake8 . - mypy --disallow-any-unimported + mypy . .PHONY: unit unit: @@ -15,7 +15,7 @@ lint: isort . black . flake8 . - mypy --disallow-any-unimported + mypy . .PHONY: profiling diff --git a/mypy.ini b/mypy.ini index 2c1c774..c4bf7b4 100755 --- a/mypy.ini +++ b/mypy.ini @@ -28,3 +28,6 @@ warn_unused_configs=True no_implicit_reexport=True strict_equality=True extra_checks=True + +[mypy-mistletoe.*] +ignore_missing_imports=True diff --git a/src/sqlfmt/api.py b/src/sqlfmt/api.py index 759c61e..b7268a6 100755 --- a/src/sqlfmt/api.py +++ b/src/sqlfmt/api.py @@ -86,7 +86,7 @@ def format_sql_code_blocks(token: BlockToken) -> None: with MarkdownRenderer() as renderer: doc = Document(source_string) format_sql_code_blocks(doc) - formatted_markdown_string = renderer.render(doc) + formatted_markdown_string: str = renderer.render(doc) return formatted_markdown_string