mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-16 12:32:06 +00:00
black formatting
This commit is contained in:
parent
ccea1e9147
commit
42d0d485a9
@ -1,8 +1,9 @@
|
|||||||
import ctypes
|
import ctypes
|
||||||
|
|
||||||
|
|
||||||
def is_libcublas_available() -> bool:
|
def is_libcublas_available() -> bool:
|
||||||
try:
|
try:
|
||||||
ctypes.CDLL("libcublas.so")
|
ctypes.CDLL("libcublas.so")
|
||||||
return True
|
return True
|
||||||
except OSError:
|
except OSError:
|
||||||
return False
|
return False
|
||||||
|
@ -12,6 +12,7 @@ def check_spacy_model() -> Iterator[None]:
|
|||||||
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
|
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module", autouse=True)
|
@pytest.fixture(scope="module", autouse=True)
|
||||||
def check_libcublas() -> Iterator[None]:
|
def check_libcublas() -> Iterator[None]:
|
||||||
if not is_libcublas_available():
|
if not is_libcublas_available():
|
||||||
@ -19,7 +20,6 @@ def check_libcublas() -> Iterator[None]:
|
|||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.requires("presidio_analyzer", "presidio_anonymizer", "faker")
|
@pytest.mark.requires("presidio_analyzer", "presidio_anonymizer", "faker")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"analyzed_fields,should_contain",
|
"analyzed_fields,should_contain",
|
||||||
|
@ -13,6 +13,7 @@ def check_spacy_model() -> Iterator[None]:
|
|||||||
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
|
pytest.skip(reason="Spacy model 'en_core_web_lg' not installed")
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module", autouse=True)
|
@pytest.fixture(scope="module", autouse=True)
|
||||||
def check_libcublas() -> Iterator[None]:
|
def check_libcublas() -> Iterator[None]:
|
||||||
if not is_libcublas_available():
|
if not is_libcublas_available():
|
||||||
|
Loading…
Reference in New Issue
Block a user