Skip to content

Commit

Permalink
Fix ruff error (stanfordnlp#1772)
Browse files Browse the repository at this point in the history
* Trigger Build

* Update ruff version

* Fix ruff errors and give more verbose debug messages
  • Loading branch information
isaacbmiller authored Nov 7, 2024
1 parent 1e539b0 commit c64b975
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: ruff_fix
uses: chartboost/ruff-action@v1
with:
args: check --fix-only --exit-non-zero-on-fix
args: check --fix-only --diff --exit-non-zero-on-fix
continue-on-error: true
- name: Fail Workflow if Ruff Fix Failed
if: steps.ruff_fix.outcome == 'failure'
Expand Down
10 changes: 5 additions & 5 deletions examples/finetune/_internal_finetune_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit c64b975

Please sign in to comment.