-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (152 loc) · 3.82 KB
/
pyproject.toml
File metadata and controls
168 lines (152 loc) · 3.82 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
167
168
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.4",
"hatchling>=1.29.0",
]
[project]
name = "fastapi-code-generator"
description = "Generate a FastAPI app from an OpenAPI file."
readme = "README.md"
license = "MIT"
authors = [{ name = "Koudai Aono", email = "koxudaxi@gmail.com" }]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version"]
dependencies = [
"click>=8.1.8,<8.2",
"datamodel-code-generator[http]>=0.56.1,<0.57",
"jinja2>=2.11.2,<4",
"pydantic>=2.12,<3",
"pysnooper>=0.4.1,<2",
"typer>=0.12,<1",
]
[project.scripts]
fastapi-codegen = "fastapi_code_generator.__main__:app"
[project.urls]
Homepage = "https://github.com/koxudaxi/fastapi-code-generator"
Source = "https://github.com/koxudaxi/fastapi-code-generator"
Documentation = "https://fastapi-code-generator.koxudaxi.dev"
[dependency-groups]
dev = [
{ include-group = "coverage" },
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "pkg-meta" },
{ include-group = "test" },
{ include-group = "type" },
]
docs = [
"tomli>=2.2.1,<3; python_version<'3.11'",
"zensical>=0.0.15; python_version>='3.10'",
]
lint = [
"black==24.10.0",
"isort==5.13.2",
"pre-commit>=4,<5",
]
pkg-meta = [
"check-wheel-contents>=0.6.1",
"twine>=6.1",
"uv>=0.9.18",
]
coverage = [
"coverage[toml]>=7.10",
"diff-cover>=9.7",
]
test = [
"inline-snapshot>=0.31",
"PyYAML>=6",
"pytest>=8.3",
"pytest-benchmark>=5",
"pytest-cov>=5",
"pytest-codspeed>=2.2",
"pytest-mock>=3.14",
"pytest-xdist>=3.6",
"time-machine>=2.15",
]
benchmark = [
"pytest-benchmark>=5",
"pytest-codspeed>=2.2",
]
type = [
"mypy>=1.13",
"types-jinja2>=2.11.9",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "fastapi_code_generator/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/fastapi_code_generator",
"/tests",
"/README.md",
"/LICENSE",
]
[tool.hatch.build.targets.wheel]
packages = ["fastapi_code_generator"]
[tool.black]
line-length = 88
skip-string-normalization = true
target-version = ["py310"]
exclude = "(tests/data|\\.eggs|\\.git|\\.hg|\\.mypy_cache|\\.nox|\\.tox|\\.venv|_build|buck-out|build|dist|.*\\/models\\.py.*|.*\\/models\\/.*)"
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
skip = "tests/data"
[tool.pytest.ini_options]
addopts = "--strict-markers"
testpaths = ["tests"]
markers = [
"perf: marks tests as performance tests",
"benchmark: marks tests as benchmark tests",
]
[tool.coverage.run]
branch = true
parallel = true
relative_files = true
omit = [
"fastapi_code_generator/_types/*",
"fastapi_code_generator/prompt_data.py",
"tests/main/test_performance.py",
]
source = [
"fastapi_code_generator",
"tests",
]
[tool.coverage.paths]
source = [
"fastapi_code_generator",
"*/fastapi-code-generator/fastapi_code_generator",
"*\\fastapi-code-generator\\fastapi_code_generator",
".tox*/*/site-packages/fastapi_code_generator",
".tox*\\*\\site-packages\\fastapi_code_generator",
]
tests = [
"tests",
"*/fastapi-code-generator/tests",
"*\\fastapi-code-generator\\tests",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
[tool.codespell]
skip = ".git,*.lock,tests,docs/llms.txt,docs/llms-full.txt"
[tool.pydantic-pycharm-plugin.parsable-types]
str = ["int", "float"]