Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Install uv and Python
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v10.3.2
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 1

- name: Install uv and Python
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v10.3.2
with:
python-version: "3.12"

Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## Unreleased

### Changed

- Dependencies refreshed to their latest releases and floors pinned to match
(sentence-transformers `6.2.0`, scikit-learn `1.9.1`, nltk `3.10.4`,
visidata `3.4`, plus the transitive stack, including torch `2.14` and
huggingface-hub `2.x`).
- The `Encoder` protocol now takes the texts positionally and
`show_progress_bar` by keyword, matching how `FuzzyClusterer` calls it and
the sentence-transformers 6 `encode` signature.
- CI also runs on Python 3.14; GitHub Actions bumped to current releases.

## 1.1.0

A maintenance release: an automated test suite, CI, and a dependency refresh.
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ authors = [{ name = "R. Miles McCain", email = "github@sendmiles.email" }]
requires-python = ">=3.12"
dependencies = [
"loguru>=0.7.3",
"nltk>=3.9.4",
"scikit-learn>=1.9.0",
"sentence-transformers>=5.6.0",
"visidata>=3.3",
"nltk>=3.10.4",
"scikit-learn>=1.9.1",
"sentence-transformers>=6.2.0",
"visidata>=3.4",
]

[project.optional-dependencies]
dev = [
"pytest>=9.1.1",
"ruff>=0.15.20",
"ty>=0.0.55",
"ruff>=0.17.2",
"ty>=0.0.92",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion ucluster/text_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def outlier_probabilities(self) -> list[float]:


class Encoder(Protocol):
def encode(self, texts: list[str], show_progress_bar: bool = ...) -> ndarray: ...
def encode(self, texts: list[str], /, *, show_progress_bar: bool = ...) -> ndarray: ...


class FuzzyClusterer(TextClusterer):
Expand Down
Loading
Loading