Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 4b7a2ef

Browse files
committed
fixes, linting and such
1 parent cfe66be commit 4b7a2ef

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mlem/utils/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import sys
99
import threading
1010
import warnings
11-
from importlib.metadata import distribution, PackageNotFoundError
1211
from collections import defaultdict
1312
from functools import lru_cache, wraps
13+
from importlib.metadata import PackageNotFoundError, distribution
1414
from pickle import PickleError
1515
from types import FunctionType, LambdaType, MethodType, ModuleType
1616
from typing import Dict, List, Optional, Set, Union

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"nbloader",
6060
# We're using regex to test requirement version extraction
6161
# edge case, see: https://github.com/iterative/mlem/issues/688
62-
'regex==2023.6.3',
62+
"regex==2023.6.3",
6363
]
6464

6565
extras = {
@@ -78,7 +78,7 @@
7878
"lightgbm": ["lightgbm"],
7979
"fastapi": ["uvicorn", "fastapi"],
8080
"prometheus": ["prometheus-fastapi-instrumentator"],
81-
"streamlit": ["uvicorn", "fastapi", "streamlit>=1.14.0", "streamlit_pydantic"],
81+
"streamlit": ["uvicorn", "fastapi", "streamlit", "streamlit_pydantic"],
8282
"sagemaker": ["docker", "boto3", "sagemaker"],
8383
"torch": ["torch"],
8484
"tensorflow": ["tensorflow"],

tests/utils/test_module_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import os
22
import subprocess
33
from typing import ClassVar
4-
import regex
54

65
import nbformat
76
import numpy
87
import pytest
8+
import regex
99
from pydantic import BaseModel
1010

1111
from mlem.core.requirements import Requirements

tests/utils/test_save.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@
7878
},
7979
"nbformat": 4,
8080
"nbformat_minor": 0
81-
}
81+
}

0 commit comments

Comments
 (0)