-
Notifications
You must be signed in to change notification settings - Fork 35
/
pyproject.toml
104 lines (91 loc) · 2.7 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.urls]
Documentation = "https://github.com/unknown/hatch-demo#readme"
Issues = "https://github.com/unknown/hatch-demo/issues"
Source = "https://github.com/unknown/hatch-demo"
[tool.hatch.version]
path = "easyllm/__init__.py"
[tool.hatch.metadata]
allow-direct-references = true
[project]
name = "easyllm"
description = "Description"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [{ name = "Philipp Schmid", email = "schmidphilipp1995@gmail.com" }]
classifiers = [
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dynamic = ["version"]
scripts = { easyllm = "easyllm.cli:main" }
dependencies = ["pydantic==2.1.1", "nanoid==2.0.0", "huggingface-hub==0.16.4"]
[project.optional-dependencies]
data = ["datasets","kenlm @ https://github.com/kpu/kenlm/archive/master.zip","sentencepiece","readability-lxml","inscriptis"]
test = ["pytest", "ruff", "black", "isort", "mypy", "hatch"]
bedrock = ["boto3"]
dev = ["ruff", "black", "isort", "mypy", "hatch"]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-autorefs",
"mkdocs-jupyter",
]
[tool.isort]
profile = "black"
known_third_party = ["fastapi", "pydantic", "starlette"]
# [tool.coverage.run]
# parallel = true
# source = [
# "docs_src",
# "tests",
# "fastapi"
# ]
# context = '${CONTEXT}'
# omit = [
# "docs_src/response_model/tutorial003_04.py",
# "docs_src/response_model/tutorial003_04_py310.py",
# ]
[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
# Same as Black.
line-length = 119
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.9.
target-version = "py38"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
# [tool.ruff.isort]
# known-third-party = ["fastapi", "pydantic", "starlette"]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
pythonpath = ['.']