forked from Aeternalis-Ingenium/JumpStart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
162 lines (152 loc) · 3.36 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
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
[build-system]
requires = ["setuptools>=69.0"]
build-backend = "setuptools.build_meta"
[project]
name = "jumpstart"
description = "A template for API application with FastAPI, Docker, Pre-Commit, and GitHub Actions"
readme = "README.md"
version = "1.0.0"
requires-python = ">=3.12"
authors = [
{name = "Nino Lindenberg", email = "[email protected]"}
]
keywords = [
"software engineering",
"api application",
"application template",
]
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"fastapi>=0.109.0",
"pydantic>=2.5.3",
"pydantic-settings>=2.1.0",
"pydantic_core>=2.14.6",
"python-multipart>=0.0.6",
"setuptools>=69.0.3",
"uvicorn>=0.26.0",
"wheel>=0.42.0",
]
[project.urls]
repository = "https://github.com/Aeternalis-Ingenium/JumpStart"
documentation = "https://github.com/Aeternalis-Ingenium/JumpStart/blob/trunk/README.md"
[project.optional-dependencies]
linter = [
"black>=23.12.1",
"colorama>=0.4.6",
"isort>=5.13.2",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
]
security = ["bandit>=1.7.6"]
test = ["pytest-cov>=4.1.0", "asgi-lifespan>=2.1.0", "trio>=0.24.0", "httpx>=0.26.0"]
[tool.bandit]
exclude_dirs = ["tests"]
tests = ["B201", "B301"]
skips = ["B101", "B601"]
[tool.black]
color=true
exclude = '''
/(
\.git
| \._build
| \.back.out
| \.build
| \.coverage
| \.dist
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| ./src/coverage
| blib2to3
| ./tests
)/
'''
include = '\.pyi?$'
line-length = 119
[tool.isort]
color_output = true
combine_as_imports = true
ensure_newline_before_comments = true
force_alphabetical_sort_within_sections = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 119
lines_between_sections = 1
multi_line_output = 3
profile = "black"
skip = [
".coverage",
"coverage/*",
"cov.*",
".dockerignore",
".env",
".github/*",
".gitignore",
".html",
".md",
".python-version",
".rst",
".xml"
]
skip_gitignore = true
src_paths = [
"src/",
"tests/",
]
use_parentheses = true
[tool.mypy]
check_untyped_defs = true
color_output = true
error_summary = true
exclude = "(build|data|dist|docs/src|images|logo|logs|output)/"
ignore_missing_imports = true
pretty = true
strict_optional = true
warn_no_return = true
warn_return_any = false
files = "src/"
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test", "Acceptance"]
python_functions = ["test_*"]
testpaths = ["tests"]
filterwarnings = "error"
addopts = '''
--verbose
-p no:warnings
--strict-markers
--tb=short
--cov=src
--cov=tests
--cov-branch
--cov-report=term-missing
--cov-report=html:coverage/cov_html
--cov-report=xml:coverage/cov.xml
--no-cov-on-fail
--cov-fail-under=80
'''
plugins = [
"anyio",
"cov",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"def __repr__",
" ...",
]
fail_under = 80
precision = 1
skip_empty = true
sort = "-Cover"