-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
87 lines (78 loc) · 1.89 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright (C) 2024 Andrew Wason
# SPDX-License-Identifier: Apache-2.0
[project]
name = "llm-transformers"
version = "0.1.0"
requires-python = ">= 3.12"
description = "Plugin for llm adding support for 🤗 Hugging Face Transformers"
readme = "README.md"
authors = [{name = "Andrew Wason"}]
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"llm~=0.16",
"transformers~=4.45.1",
"torch~=2.4.1",
"soundfile~=0.12.1",
"pillow~=10.4.0",
"pytesseract~=0.3.13",
"timm~=1.0.9",
"protobuf~=5.28.2",
"pandas~=2.2.3",
"av~=13.0.0",
"numpy~=2.1.1",
]
[tool.uv]
dev-dependencies = [
"pytest~=8.3.3",
"ruff~=0.6.8",
]
[project.urls]
Homepage = "https://github.com/rectalogic/llm-transformers"
Changelog = "https://github.com/rectalogic/llm-transformers/releases"
Issues = "https://github.com/rectalogic/llm-transformers/issues"
CI = "https://github.com/rectalogic/llm-transformers/actions"
[project.entry-points.llm]
transformers = "llm_transformers"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py312"
line-length = 108
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
# flake8-2020
"YTT",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I",
# flake8-no-pep420
"INP",
# pyupgrade
"UP",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S", "INP001"]
[tool.pytest.ini_options]
markers = [
"llm: marks tests that run an LLM",
"llm0: marks a subset of llm tests into their own group",
"llm1: marks a subset of llm tests into their own group",
"llm2: marks a subset of llm tests into their own group",
"llm3: marks a subset of llm tests into their own group",
]