This repository was archived by the owner on Mar 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (84 loc) · 2.39 KB
/
pyproject.toml
File metadata and controls
92 lines (84 loc) · 2.39 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
[project]
name = "fastapi-template"
version = "1.0.0"
description = "A template for creating a new application"
authors = [{ name = "Yuki Watanabe", email = "ukwhatn@gmail.com" }]
requires-python = "==3.13.*"
dependencies = [
"fastapi[standard]>=0.120.0",
"jinja2>=3.1.2",
"sqlalchemy>=2.0.32",
"psycopg2-binary>=2.9.9",
"alembic>=1.13.0",
"pydantic>=2.8.2",
"pydantic-settings>=2.8.1",
"cryptography>=46.0.3",
"sentry-sdk[fastapi]>=2.19.2",
"newrelic>=11.0.1",
"apscheduler>=3.10.0,<4.0",
"opendal>=0.45.0",
"click>=8.1.0",
]
[dependency-groups]
dev = [
"ruff>=0.15.6",
"bandit>=1.7.8",
"semgrep>=1.63.0",
"pytest>=8.3.5",
"pytest-cov>=7.0.0",
"mypy>=1.18.2",
"types-requests>=2.32.4.20250913",
"pre-commit>=4.3.0",
"types-psycopg2>=2.9.21.20251012",
]
[tool.uv]
package = false
[tool.ruff]
preview = true
[tool.ruff.lint]
ignore = [
"B008", # function-call-in-default-argument (FastAPI Depends pattern)
"BLE001", # blind-except (intentional in CLI/backup error handling)
"DTZ005", # call-datetime-now-without-tzinfo (local time usage is intentional)
"DTZ006", # call-datetime-fromtimestamp (same as above)
"DTZ007", # call-datetime-strptime-without-zone (same as above)
"G201", # logging-exc-info (style choice)
"RUF059", # unused-unpacked-variable (test helpers)
"TRY201", # verbose-raise (explicit re-raise for clarity)
]
[tool.mypy]
python_version = "3.13"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_unimported = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
check_untyped_defs = true
strict_equality = true
plugins = ["pydantic.mypy"]
explicit_package_bases = true
mypy_path = "$MYPY_CONFIG_FILE_DIR"
[[tool.mypy.overrides]]
module = [
"newrelic.*",
"sentry_sdk.*",
"bandit.*",
"semgrep.*",
"alembic.*",
"apscheduler.*",
"opendal.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
# FastAPI内部のPydantic v1互換コードによる警告を抑制
# プロジェクトコードの問題ではなく、FastAPI 0.120.4の内部実装による
filterwarnings = [
"ignore:The `__fields__` attribute is deprecated:pydantic.warnings.PydanticDeprecatedSince20",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"