Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

feat(tests): change it to ci way -_-

Amir Mehrf6a64e36d12a
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dd09e9627..7aa32a182 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,12 +5,12 @@ default_stages: [commit]
default_install_hook_types: [pre-commit, commit-msg]
repos:
- - repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.1.11
- hooks:
- - id: ruff
- args: [--fix]
- - id: ruff-format
+ # - repo: https://github.com/astral-sh/ruff-pre-commit
+ # rev: v0.1.11
+ # hooks:
+ # - id: ruff
+ # args: [--fix]
+ # - id: ruff-format
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
diff --git a/dsp/modules/cache_utils.py b/dsp/modules/cache_utils.py
index a7e2bde2f..913d3614c 100644
--- a/dsp/modules/cache_utils.py
+++ b/dsp/modules/cache_utils.py
@@ -6,7 +6,7 @@ from joblib import Memory
from dsp.utils import dotdict
-cache_turn_on = os.environ.get('DSP_CACHEBOOL', 'True').lower() != 'false'
+cache_turn_on = os.environ.get("DSP_CACHEBOOL", "True").lower() != "false"
def noop_decorator(arg=None, *noop_args, **noop_kwargs):
@@ -23,10 +23,14 @@ def noop_decorator(arg=None, *noop_args, **noop_kwargs):
return decorator
-cachedir = os.environ.get('DSP_CACHEDIR') or os.path.join(Path.home(), 'cachedir_joblib')
+cachedir = os.environ.get("DSP_CACHEDIR") or os.path.join(Path.home(), "cachedir_joblib")
CacheMemory = Memory(location=cachedir, verbose=0)
-cachedir2 = os.environ.get('DSP_NOTEBOOK_CACHEDIR')
+cachedir2 = os.environ.get("DSP_NOTEBOOK_CACHEDIR")
+print("HELLOOOOO CACHEEEE READ MEEEEEEEEE")
+print(f"cachedir2: {cachedir2}")
+print(os.environ.get("DSP_NOTEBOOK_CACHEDIR"))
+print("HELLOOOOO CACHEEEE READ MEEEEEEEEE")
NotebookCacheMemory = dotdict()
NotebookCacheMemory.cache = noop_decorator