e-mon's picture
update transformers
80e78d7
Raw History Blame Contribute Delete
1.4 kB
[project]
name = "open-japanese-llm-leaderboard"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.13, <3.14"
dependencies = [
"apscheduler>=3.10.4",
"datasets>=3.2.0",
"gradio[oauth]>=5.9.1",
"hf-transfer>=0.1.8",
"plotly>=5.24.1,<6.0.0",
"torch>=2.5.1",
"transformers>=5.2.0",
]
# HF Spaces runs CPU-only — avoid pulling the CUDA stack via the default index.
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
[tool.ruff]
line-length = 119
[tool.ruff.lint]
select = [
"ARG", # Check function argument usage
"B", # Common bugs and design problems (from flake8-bugbear)
"C", # Complexity checks (from mccabe)
"E", # PEP 8 errors (from pycodestyle)
"F", # Pyflakes errors (basic Python errors)
"I", # Import sorting and formatting
"N", # Naming conventions (from pep8-naming)
"S101", # Use of assert statements (from flake8-bandit)
"SIM", # Code simplification suggestions
"UP", # Python upgrade suggestions
"W", # PEP 8 warnings (from pycodestyle)
]
ignore = [
"E501", # Line too long (> 79 characters)
"SIM117", # Use a single 'with' statement with multiple contexts instead of nested 'with' statements
]
[tool.ruff.format]
docstring-code-format = true