Skip to content

Commit c64b975

Browse files
authored
Fix ruff error (#1772)
* Trigger Build * Update ruff version * Fix ruff errors and give more verbose debug messages
1 parent 1e539b0 commit c64b975

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
id: ruff_fix
2525
uses: chartboost/ruff-action@v1
2626
with:
27-
args: check --fix-only --exit-non-zero-on-fix
27+
args: check --fix-only --diff --exit-non-zero-on-fix
2828
continue-on-error: true
2929
- name: Fail Workflow if Ruff Fix Failed
3030
if: steps.ruff_fix.outcome == 'failure'

examples/finetune/_internal_finetune_demo.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"%autoreload 2\n",
2121
"\n",
2222
"# Setting the environment variables\n",
23-
"import os\n",
23+
"import os # noqa\n",
2424
"\n",
2525
"# os.environ[\"DSPY_CACHEDIR\"] =\n",
2626
"# os.environ[\"DSP_CACHEDIR\"] =\n",
@@ -527,8 +527,8 @@
527527
"source": [
528528
"import dspy\n",
529529
"from dspy.datasets import HotPotQA\n",
530-
"from dspy.evaluate import Evaluate\n",
531-
"from dsp.utils.utils import deduplicate\n",
530+
"from dspy.evaluate import Evaluate # noqa\n",
531+
"from dsp.utils.utils import deduplicate # noqa\n",
532532
"\n",
533533
"\n",
534534
"# We are setting the experimental flag to True to make use of the fine-tuning\n",
@@ -773,8 +773,8 @@
773773
"source": [
774774
"import dspy\n",
775775
"from dspy.datasets import HotPotQA\n",
776-
"from dspy.evaluate import Evaluate\n",
777-
"from dsp.utils.utils import deduplicate\n",
776+
"from dspy.evaluate import Evaluate # noqa\n",
777+
"from dsp.utils.utils import deduplicate # noqa\n",
778778
"\n",
779779
"\n",
780780
"# We are setting the experimental flag to True to make use of the fine-tuning\n",

0 commit comments

Comments
 (0)