generated from gpauloski/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
177 lines (158 loc) · 3.5 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "ragamp"
version = "0.1.0"
authors = [
{name = "Ozan Gokdemir"},
{email = "[email protected]"},
]
description = "Retrieval Augmented Generation for Antimicrobial Peptides."
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"requests >= 2.31.0",
"transformers >= 4.37.1",
"tokenizers >= 0.15.1",
"llama-index >= 0.9.36",
"langchain >= 0.1.3",
"llama-index-llms-huggingface",
"llama-index-readers-file",
"bitsandbytes >= 0.42.0",
"sentence_transformers >= 2.2.2",
"llama-index-embeddings-langchain",
"llama-index-embeddings-huggingface",
"llama-index-vector-stores-faiss",
"faiss-gpu >= 1.7.0",
]
[project.urls]
homepage = "https://github.com/ogkdmr/ragamp"
documentation = "https://ogkdmr.github.io/ragamp/"
repository = "https://github.com/ogkdmr/ragamp"
[project.optional-dependencies]
dev = [
"covdefaults>=2.2",
"coverage",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"ruff>=0.2.0",
"tox",
"virtualenv",
]
docs = [
"black",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-material==9.4.7",
"mkdocs-section-index",
"mkdocstrings==0.23.0",
"mkdocstrings-python==1.8.0",
"mike",
]
[tool.codespell]
skip = """
.git,
.github,
__pycache__,
build,
dist,
.*egg-info
"""
[tool.coverage.run]
plugins = ["covdefaults"]
omit = ["examples"]
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "testing.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[tool.ruff]
line-length = 79
target-version = "py38"
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.ruff.lint]
# See all rules here: https://beta.ruff.rs/docs/rules
select = [
# pyflakes
"F",
# pycodestyle
"E",
# mccabe
"C90",
# isort
"I",
# pep8-naming
"N",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-implicit-str-concat
"ISC",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# PyLint
"PL",
# ruff-specific
"RUF",
]
extend-ignore = ["COM812", "ISC001"]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["ragamp", "test", "testing"]
order-by-type = false
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
"*/*_test.py" = ["D10"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools.packages.find]
exclude = ["tests*", "testing*"]
namespaces = false