-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (109 loc) · 3.3 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (109 loc) · 3.3 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "syneto-openapi-themes"
version = "0.2.3"
description = "Syneto-branded themes and utilities for OpenAPI documentation tools"
authors = ["Syneto <dev@syneto.net>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/syneto/syneto-openapi-themes"
repository = "https://github.com/syneto/syneto-openapi-themes"
documentation = "https://github.com/syneto/syneto-openapi-themes"
keywords = ["openapi", "fastapi", "rapidoc", "swagger", "redoc", "syneto", "themes"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Documentation",
"Framework :: FastAPI",
]
packages = [{include = "syneto_openapi_themes", from = "src"}]
[tool.poetry.dependencies]
# Core dependencies - always required
python = "^3.9.2"
openapipages = ">=0.1.2,<0.3.0"
jinja2 = "^3.1.0"
fastapi = {version = ">=0.115.12,<0.129.0"}
pip = "^25.1.1"
cryptography = "^45.0.4"
[tool.poetry.extras]
# FastAPI integration with all required dependencies
fastapi = ["fastapi"]
# All optional features
all = ["fastapi"]
[tool.poetry.group.dev.dependencies]
# Testing framework and plugins
pytest = "^7.0.0"
pytest-asyncio = "^0.23.8"
pytest-cov = "^4.1.0"
httpx = "^0.28.1" # Required for FastAPI TestClient in integration tests
# FastAPI is required for development and testing (even though it's optional for users)
fastapi = ">=0.115.12,<0.129.0"
# Code formatting and linting
black = "^24.3.0"
ruff = ">=0.1,<0.17"
mypy = "^1.0.0"
# Security and quality tools
safety = "^2.3.0"
bandit = "^1.7.0"
pre-commit = "^4.2.0"
# Development server (for examples and testing)
uvicorn = ">=0.20,<0.40"
# Documentation and publishing
markdown = "^3.8"
twine = "^6.1.0"
[tool.poetry.group.test.dependencies]
# Test-specific dependencies that might be needed in CI
pytest = "^7.0.0"
pytest-asyncio = "^0.23.8"
pytest-cov = "^4.1.0"
httpx = "^0.28.1"
# Include FastAPI for integration tests
fastapi = ">=0.115.12,<0.129.0"
[tool.black]
line-length = 120
target-version = ['py39']
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"openapipages.*",
"fastapi.*"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "syneto_openapi_themes.fastapi_integration"
disable_error_code = ["misc"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"