Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Apr 12, 2024
1 parent 3626a50 commit d12cda7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,8 @@ exclude_lines = [
]

[[tool.mypy.overrides]]
module = "simplemma.*"
module = [
"simplemma.*",
"litellm.*"
]
ignore_missing_imports = true
4 changes: 2 additions & 2 deletions src/banks/extensions/generate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2023-present Massimiliano Pippi <[email protected]>
#
# SPDX-License-Identifier: MIT
from typing import ClassVar, cast
from typing import cast

from jinja2 import nodes
from jinja2.ext import Extension
Expand All @@ -22,7 +22,7 @@ class GenerateExtension(Extension):
"""

# a set of names that trigger the extension.
tags: ClassVar[set] = {"generate"}
tags = {"generate"} # noqa

def parse(self, parser):
# We get the line number of the first token so that we can give
Expand Down
3 changes: 1 addition & 2 deletions src/banks/extensions/inference_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# SPDX-License-Identifier: MIT
import html
import os
from typing import ClassVar

import requests
from jinja2 import nodes
Expand All @@ -23,7 +22,7 @@ class HFInferenceEndpointsExtension(Extension):
"""

# a set of names that trigger the extension.
tags: ClassVar[set] = {"inference_endpoint"}
tags = {"inference_endpoint"} # noqa

def parse(self, parser):
# We get the line number of the first token so that we can give
Expand Down

0 comments on commit d12cda7

Please sign in to comment.