From aeeef1d578980f5d20418fbde8f6e20b2264480d Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Sat, 17 Aug 2024 18:58:31 +0100 Subject: [PATCH] Update ruff to 0.6.1 Since 0.6.0, ruff checks also Jupyter notebook files by default: https://astral.sh/blog/ruff-v0.6.0 --- lib/galaxy/dependencies/pinned-lint-requirements.txt | 2 +- .../selenium/jupyter/notebook_example_testing.ipynb | 1 - test-data/selenium-test-notebook.ipynb | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/galaxy/dependencies/pinned-lint-requirements.txt b/lib/galaxy/dependencies/pinned-lint-requirements.txt index cf41e323498d..6aa97f2ab26d 100644 --- a/lib/galaxy/dependencies/pinned-lint-requirements.txt +++ b/lib/galaxy/dependencies/pinned-lint-requirements.txt @@ -4,4 +4,4 @@ flake8-bugbear==24.4.26 mccabe==0.7.0 pycodestyle==2.12.0 pyflakes==3.2.0 -ruff==0.5.1 +ruff==0.6.1 diff --git a/lib/galaxy_test/selenium/jupyter/notebook_example_testing.ipynb b/lib/galaxy_test/selenium/jupyter/notebook_example_testing.ipynb index c99aacf8802f..065248a456ed 100644 --- a/lib/galaxy_test/selenium/jupyter/notebook_example_testing.ipynb +++ b/lib/galaxy_test/selenium/jupyter/notebook_example_testing.ipynb @@ -66,7 +66,6 @@ "source": [ "# optional step that shows how to access ActionChains\n", "\n", - "from selenium import webdriver\n", "from selenium.webdriver.common.action_chains import ActionChains\n", "ac = ActionChains(gx_selenium_context.driver)" ] diff --git a/test-data/selenium-test-notebook.ipynb b/test-data/selenium-test-notebook.ipynb index 1cdb2736403d..2d87460a6120 100644 --- a/test-data/selenium-test-notebook.ipynb +++ b/test-data/selenium-test-notebook.ipynb @@ -44,7 +44,7 @@ } ], "source": [ - "get(1)" + "get(1) # noqa: F821" ] }, { @@ -85,7 +85,7 @@ }, "outputs": [], "source": [ - "put(\"/tmp/cow\")" + "put(\"/tmp/cow\") # noqa: F821" ] }, { @@ -115,7 +115,7 @@ }, "outputs": [], "source": [ - "put(\"/import/ipython_galaxy_notebook.ipynb\")" + "put(\"/import/ipython_galaxy_notebook.ipynb\") # noqa: F821" ] }, {