Skip to content

Commit 92ceb2d

Browse files
committed
🔧 Add pyproject.toml project and tools config
1 parent e0a8b8b commit 92ceb2d

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

‎pyproject.toml‎

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
[project]
2+
name = "fastapi-new"
3+
version = "0.0.1"
4+
license = "MIT"
5+
license-files = ["LICENSE"]
6+
description = "Create a new FastAPI project in one command."
7+
readme = "README.md"
8+
authors = [
9+
{ name = "Sebastián Ramírez", email = "[email protected]" }
10+
]
11+
requires-python = ">=3.10"
12+
classifiers = [
13+
"Intended Audience :: Information Technology",
14+
"Intended Audience :: System Administrators",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python",
18+
"Topic :: Internet",
19+
"Topic :: Software Development :: Libraries :: Application Frameworks",
20+
"Topic :: Software Development :: Libraries :: Python Modules",
21+
"Topic :: Software Development :: Libraries",
22+
"Topic :: Software Development",
23+
"Typing :: Typed",
24+
"Development Status :: 4 - Beta",
25+
"Intended Audience :: Developers",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
31+
"Programming Language :: Python :: 3.14",
32+
]
33+
dependencies = []
34+
[project.urls]
35+
Homepage = "https://github.com/fastapi/fastapi-new"
36+
Documentation = "https://github.com/fastapi/fastapi-new"
37+
Repository = "https://github.com/fastapi/fastapi-new"
38+
Issues = "https://github.com/fastapi/fastapi-new/issues"
39+
Changelog = "https://github.com/fastapi/fastapi-new/release-notes.md"
40+
41+
[build-system]
42+
requires = ["uv_build>=0.9.1,<0.10.0"]
43+
build-backend = "uv_build"
44+
45+
[tool.mypy]
46+
strict = true
47+
48+
[tool.pytest.ini_options]
49+
addopts = [
50+
"--strict-config",
51+
"--strict-markers",
52+
]
53+
xfail_strict = true
54+
junit_family = "xunit2"
55+
56+
[tool.coverage.run]
57+
parallel = true
58+
data_file = "coverage/.coverage"
59+
source = [
60+
"src/fastapi_new",
61+
"tests",
62+
]
63+
context = '${CONTEXT}'
64+
dynamic_context = "test_function"
65+
relative_files = true
66+
67+
[tool.coverage.report]
68+
show_missing = true
69+
sort = "-Cover"
70+
71+
[tool.coverage.html]
72+
show_contexts = true
73+
74+
[tool.ruff.lint]
75+
select = [
76+
"E", # pycodestyle errors
77+
"W", # pycodestyle warnings
78+
"F", # pyflakes
79+
"I", # isort
80+
"B", # flake8-bugbear
81+
"C4", # flake8-comprehensions
82+
"UP", # pyupgrade
83+
]
84+
ignore = [
85+
"E501", # line too long, handled by black
86+
"B008", # do not perform function calls in argument defaults
87+
"C901", # too complex
88+
"W191", # indentation contains tabs
89+
]
90+
91+
[tool.ruff.lint.pyupgrade]
92+
# Preserve types, even if a file imports `from __future__ import annotations`.
93+
keep-runtime-typing = true
94+
95+
[tool.uv.build-backend]
96+
source-include = [
97+
"tests/**",
98+
"requirements*.txt",
99+
"scripts/**",
100+
]

0 commit comments

Comments
 (0)