-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (58 loc) · 1.41 KB
/
pyproject.toml
File metadata and controls
66 lines (58 loc) · 1.41 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
[project]
name = "fastapi-openapi-cli"
version = "0.2.2"
description = "CLI tool to export FastAPI OpenAPI specifications"
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [{ name = "Hector Castro", email = "hectcastro@gmail.com" }]
requires-python = ">=3.12"
dependencies = ["fastapi>=0.115.0", "pyyaml>=6.0.2"]
[project.scripts]
fastapi-openapi = "fastapi_openapi_cli.cli:main"
[dependency-groups]
dev = [
"pytest>=8.3.0",
"pytest-cov>=6.0.0",
"ruff>=0.8.0",
"ty>=0.0.1a25",
"deptry>=0.21.0",
]
[build-system]
requires = ["uv_build>=0.9.7,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
line-length = 100
target-version = "py312"
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"TC", # flake8-type-checking
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"--cov=fastapi_openapi_cli",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-fail-under=100",
]
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.deptry]
extend_exclude = ["tests"]
known_first_party = ["fastapi_openapi_cli"]