DSPy: The framework for programming—not prompting—language models
Python
Fix ruff error (#1772)
Isaac Millerc64b9756dde7
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 0e5583d23..d5eacbae8 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -24,7 +24,7 @@ jobs:id: ruff_fixuses: chartboost/ruff-action@v1with:- args: check --fix-only --exit-non-zero-on-fix+ args: check --fix-only --diff --exit-non-zero-on-fixcontinue-on-error: true- name: Fail Workflow if Ruff Fix Failedif: steps.ruff_fix.outcome == 'failure'diff --git a/examples/finetune/_internal_finetune_demo.ipynb b/examples/finetune/_internal_finetune_demo.ipynbindex 9b95cf301..bde92e4e4 100644--- a/examples/finetune/_internal_finetune_demo.ipynb+++ b/examples/finetune/_internal_finetune_demo.ipynb@@ -20,7 +20,7 @@"%autoreload 2\n","\n","# Setting the environment variables\n",- "import os\n",+ "import os # noqa\n","\n","# os.environ[\"DSPY_CACHEDIR\"] =\n","# os.environ[\"DSP_CACHEDIR\"] =\n",@@ -527,8 +527,8 @@"source": ["import dspy\n","from dspy.datasets import HotPotQA\n",- "from dspy.evaluate import Evaluate\n",- "from dsp.utils.utils import deduplicate\n",+ "from dspy.evaluate import Evaluate # noqa\n",+ "from dsp.utils.utils import deduplicate # noqa\n","\n","\n","# We are setting the experimental flag to True to make use of the fine-tuning\n",@@ -773,8 +773,8 @@"source": ["import dspy\n","from dspy.datasets import HotPotQA\n",- "from dspy.evaluate import Evaluate\n",- "from dsp.utils.utils import deduplicate\n",+ "from dspy.evaluate import Evaluate # noqa\n",+ "from dsp.utils.utils import deduplicate # noqa\n","\n","\n","# We are setting the experimental flag to True to make use of the fine-tuning\n",