Skip to content

Commit

Permalink
Fix mypy by ignoring missing imports for mistletoe
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-the1 committed Jul 19, 2024
1 parent 58bc61e commit 35ace60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ check:
black .
pytest
flake8 .
mypy --disallow-any-unimported
mypy .

.PHONY: unit
unit:
Expand All @@ -15,7 +15,7 @@ lint:
isort .
black .
flake8 .
mypy --disallow-any-unimported
mypy .


.PHONY: profiling
Expand Down
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ warn_unused_configs=True
no_implicit_reexport=True
strict_equality=True
extra_checks=True

[mypy-mistletoe.*]
ignore_missing_imports=True
2 changes: 1 addition & 1 deletion src/sqlfmt/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 35ace60

Please sign in to comment.