-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
127 lines (112 loc) · 3.27 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
include = ["src"]
[tool.hatch.build.targets.wheel]
sources = ["src"]
[project]
name = "fastapi-gen"
dynamic = ["version"]
description = "Set up a modern REST API by running one command."
readme = "README.md"
requires-python = ">=3.10"
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.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = ["click==8.1.8", "colorama==0.4.6", "importlib_resources==6.5.2"]
[project.optional-dependencies]
dev = ["ruff==0.9.9"]
[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]
path = "src/cli/__about__.py"
[tool.hatch.envs.default]
dependencies = ["coverage[toml]==7.6.12", "pytest"]
[[tool.hatch.envs.all.matrix]]
python = ["3.10", "3.11"]
[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",
]
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"]