Skip to content

Commit 2f610c1

Browse files
authored
chore: drop Python 3.8 and move to uv (#215)
* chore: drop Python 3.8 and move to uv * chore: drop Python 3.8 CI * fix: uvx ruff format
1 parent 1ebe19a commit 2f610c1

File tree

4 files changed

+1589
-7
lines changed

4 files changed

+1589
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
max-parallel: 4
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11"]
15+
python-version: ["3.9", "3.10", "3.11"]
1616

1717
steps:
1818
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies = [
77
"requests<3.0.0",
88
]
99
readme = "README.md"
10-
requires-python = ">= 3.8"
10+
requires-python = ">= 3.9"
1111
license = "MIT"
1212

1313
[project.optional-dependencies]
@@ -71,15 +71,14 @@ module = [
7171
]
7272
ignore_missing_imports = true
7373

74-
[tool.rye]
75-
managed = true
74+
[tool.uv]
7675
dev-dependencies = [
7776
"pytest>=8.2.0",
7877
"httpx>=0.27.0",
7978
"ruff>=0.4.4",
8079
"mypy>=1.10.0",
8180
"sphinx>=7.3.7",
82-
"pydata-sphinx-theme>=0.15.2",
81+
"pydata-sphinx-theme>=0.16.1",
8382
]
8483

8584
[tool.ruff]

src/konoha/api/v1/tokenization.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def generate_cache_key(params):
3434
async def tokenize(params: TokenizeParameter, request: Request):
3535
if params.texts is not None:
3636
message = (
37-
"A parameter `texts` is now unacceptable for /api/v1/tokenize."
38-
" Please use /api/v1/batch_tokenize instead."
37+
"A parameter `texts` is now unacceptable for /api/v1/tokenize. Please use /api/v1/batch_tokenize instead."
3938
)
4039
raise HTTPException(status_code=400, detail=message)
4140

0 commit comments

Comments
 (0)