diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39ddc6d..9f243c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Release +name: CI on: push: @@ -14,13 +14,10 @@ jobs: Lint: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - + - uses: actions/checkout@v3 - uses: astral-sh/setup-uv@v3 with: version: "0.4.x" - - run: uv run ruff check uv run ruff format @@ -35,21 +32,15 @@ jobs: - "3.10" - "3.11" - "3.12" - steps: - - name: Checkout - uses: actions/checkout@v3 - + - uses: actions/checkout@v3 - uses: actions/setup-python@v5 with: python-version-file: ".python-version" - - uses: astral-sh/setup-uv@v3 with: version: "0.4.x" - - - name: Run tests - run: uv run pytest --color=yes + - run: uv run pytest --color=yes Release: if: startsWith(github.ref, 'refs/tags/') diff --git a/notebooks/abundance-analysis.ipynb b/notebooks/abundance-analysis.ipynb index 35a086f..1f720e5 100644 --- a/notebooks/abundance-analysis.ipynb +++ b/notebooks/abundance-analysis.ipynb @@ -33,9 +33,10 @@ "outputs": [], "source": [ "import pathlib\n", - "import sys\n", + "\n", "import pandas as pd\n", - "from cev.widgets import Embedding, EmbeddingComparisonWidget, compare\n", + "\n", + "from cev.widgets import Embedding, EmbeddingComparisonWidget\n", "\n", "\n", "def get_embedding(folder: str, sample: str):\n", diff --git a/notebooks/getting-started.ipynb b/notebooks/getting-started.ipynb index 3ff1781..8aa167c 100644 --- a/notebooks/getting-started.ipynb +++ b/notebooks/getting-started.ipynb @@ -22,6 +22,7 @@ "outputs": [], "source": [ "import pandas as pd\n", + "\n", "from cev.widgets import Embedding, EmbeddingComparisonWidget" ] }, diff --git a/notebooks/lui-2021.ipynb b/notebooks/lui-2021.ipynb index 2f749b7..7d669e9 100644 --- a/notebooks/lui-2021.ipynb +++ b/notebooks/lui-2021.ipynb @@ -31,9 +31,10 @@ "outputs": [], "source": [ "import pathlib\n", - "import sys\n", + "\n", "import pandas as pd\n", - "from cev.widgets import Embedding, EmbeddingComparisonWidget, compare" + "\n", + "from cev.widgets import Embedding, EmbeddingComparisonWidget" ] }, { diff --git a/tests/test_widget_utils.py b/tests/test_widget_utils.py index cd83452..8b41113 100644 --- a/tests/test_widget_utils.py +++ b/tests/test_widget_utils.py @@ -1,4 +1,5 @@ import pandas as pd + from cev._widget_utils import trim_label_series