-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (150 loc) · 4.34 KB
/
pyproject.toml
File metadata and controls
166 lines (150 loc) · 4.34 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build]
include = [
"src/cli/**/*.py",
"packages/template-hello-world/**/*",
"packages/template-advanced/**/*",
"packages/template-nlp/**/*",
"packages/template-langchain/**/*",
"packages/template-llama/**/*",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"**/.venv",
"**/venv",
"**/.pytest_cache",
"**/.ruff_cache",
"**/*.egg-info",
"**/uv.lock",
"**/.git",
"**/*.log",
"**/*.db",
"**/models/*.gguf",
"**/models/*.bin",
]
[tool.hatch.build.targets.wheel]
sources = ["src"]
packages = ["src/cli"]
[tool.hatch.build.targets.wheel.force-include]
"packages/template-hello-world" = "cli/templates/template-hello-world"
"packages/template-advanced" = "cli/templates/template-advanced"
"packages/template-nlp" = "cli/templates/template-nlp"
"packages/template-langchain" = "cli/templates/template-langchain"
"packages/template-llama" = "cli/templates/template-llama"
[project]
name = "fastapi-gen"
dynamic = ["version"]
description = "Set up a modern REST API by running one command."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = [
"fastapi",
"cli",
"hello world",
"huggingface",
"langchain",
"summarization",
"nlp",
"ner",
"named-entity recognition",
"text generation",
"llama",
"llama.cpp",
]
authors = [
{ name = "Miroslav Pokrovskii", email = "miroslavpokrovskiy@gmail.com" },
]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: FastAPI",
"Framework :: Pydantic",
"Framework :: Pydantic :: 1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = ["click==8.3.3", "colorama==0.4.6", "importlib_resources==7.1.0"]
[dependency-groups]
dev = ["ruff==0.15.13", "pytest==9.0.3", "coverage[toml]==7.14.0"]
[project.urls]
Documentation = "https://github.com/mirpo/fastapi-gen#readme"
Issues = "https://github.com/mirpo/fastapi-gen/issues"
Source = "https://github.com/mirpo/fastapi-gen"
[project.scripts]
fastapi-gen = "cli.__main__:main"
[tool.hatch.version]
source = "vcs"
[[tool.hatch.envs.all.matrix]]
python = ["3.11", "3.12", "3.13"]
[tool.uv.workspace]
members = [
"packages/template-hello-world",
"packages/template-advanced",
"packages/template-nlp",
"packages/template-langchain",
"packages/template-llama",
]
[tool.black]
target-version = ["py311"]
line-length = 120
skip-string-normalization = true
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # Type hints related, let mypy handle these.
"B027", # Allow non-abstract empty methods in abstract base classes
"D", # Docstring errors. Should add proper documentation at some point.
"FBT003", # Allow boolean positional values in function calls, like `dict.get(... True)`
"S105", # Ignore checks for possible passwords
"S106",
"S107",
"C901", # Ignore complexity
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PTH", # User Pathlib stuff over os.*. Should migrate to Pathlib at some point.
"S603",
"S607",
"S101",
"PLR2004",
"COM812", # Conflicts with ruff formatter
]
unfixable = [
# Don't touch unused imports
"F401",
]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]
"scripts/**/*" = ["T201", "INP001"]