-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (47 loc) · 1.42 KB
/
pyproject.toml
File metadata and controls
57 lines (47 loc) · 1.42 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
[project]
name = "simple-superhero-service"
version = "2.0.0"
description = "A self-contained superhero data service built with FastAPI"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.34.0",
"pydantic>=2.10.0",
"pydantic-settings>=2.7.0",
"python-dotenv>=1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"httpx>=0.28.0",
"anyio[trio]>=4.7.0",
"coverage>=7.6.0",
"black>=24.10.0",
"ruff>=0.9.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["service"]
[tool.pytest.ini_options]
testpaths = ["unit"]
[tool.coverage.run]
branch = true
source = ["service"]
[tool.bandit]
skips = ["B101"]
[tool.pylint.main]
# Inform Pylint of the actual Python version so built-in generics (list[...],
# dict[...]) and typing additions (Literal, Annotated) are recognised correctly.
py-version = "3.12"
[tool.pylint.basic]
# h and s are intentional short names that map directly to API query parameters.
good-names = ["h", "s", "e", "i", "j", "k", "_"]
[tool.pylint.design]
# _build_options mirrors the full set of API query parameters (12 args).
max-args = 15
[tool.pylint.messages_control]
# 'format' and 'help' shadow builtins intentionally — they are public API
# query-parameter names whose spelling cannot be changed without breaking clients.
disable = ["redefined-builtin"]