File size: 1,333 Bytes
41c8f83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "huggingface-gradio-template"
version = "0.1.0"
description = "A boilerplate template for an IBM Granite Huggingface Spaces Gradio Demo"
authors = [{name = "Martín Santillán Cooper", email = "msantillancooper@ibm.com"}]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
    "gradio==6.14.0",
    "spaces>=0.49.3",
    "python-dotenv>=1.0.1",
    "transformers[torch]>=4.56.2",
    "torch<=2.11.0",
    "accelerate>=1.2.1",
    "pydantic>=2.11.10,<2.13",
    "uvicorn>=0.14.0",
    "websockets>=10.4",
]

[project.optional-dependencies]
dev = [
    "pre-commit>=4.0.1",
    "ruff>=0.9.2",
    "pytest>=8.3.4",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"


[tool.ruff]
lint.select = [
    "E",   # pycodestyle
    "F",   # pyflakes
    "UP",  # pyupgrade
    "D",   # pydocstyle
    "B",   # bugbear
    "ANN", # annotations
    "N",   # pep8-naming
    "C4",  # Comprehensions
    "DTZ", # DatetimeZ
    "Q",   # Quotes
    "SIM", # Simplify
    "RUF", # Ruff
]
lint.ignore = [
    "D203",
    "D213",
    "RUF015",
    "SIM117",
    "ANN001",
    "ANN201",
    "D103",
    "E501",
]
lint.fixable = ["ALL"]
lint.unfixable = []
line-length = 120


[tool.black]
line-length = 120

[tool.ruff.lint.pydocstyle]
convention = "google"