-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (69 loc) · 1.93 KB
/
pyproject.toml
File metadata and controls
77 lines (69 loc) · 1.93 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
[project]
name = "app"
version = "1.4.0"
description = "API for Template Fastapi React"
requires-python = ">=3.14"
readme = "../README.md"
dependencies = [
"azure-identity>=1.19.0",
"azure-monitor-opentelemetry>=1.8.7",
"azure-monitor-opentelemetry-exporter>=1.0.0b49",
"cachetools>=7.1.1",
"fastapi[standard]>=0.136.1",
"httpx>=0.28",
"opentelemetry-instrumentation-fastapi>=0.61b0",
"pydantic>=2.13.3",
"pydantic-settings>=2.14.0",
"pyjwt>=2.8.0",
"pymongo>=4.17.0",
]
[dependency-groups]
dev = [
"mongomock>=4.1.2",
"mypy>=1.20.2",
"pytest>=8.3.0",
"types-cachetools>=5.5.0.20240820",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.mypy]
plugins = ["pydantic.mypy"]
strict = true
exclude = ["/tests/"]
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
disallow_subclassing_any = false
[tool.ruff]
src = ["src"]
target-version = "py314"
line-length = 119
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # automatically upgrade syntax for newer versions of the language
]
ignore = [
"B904", # TODO: Within an except clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
"B008", # do not perform function calls in argument defaults. Ignored to allow dependencies in FastAPI
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"E402",
] # Ignore `E402` (import violations) in all `__init__.py` files
"tests/*" = ["S101"] # Allow the use of ´assert´ in tests
[tool.pytest.ini_options]
# Makes pytest CLI discover markers and conftest settings:
markers = [
"unit: mark a test as unit test.",
"integration: mark a test as integration test.",
]
testpaths = ["tests/unit", "tests/integration"]
pythonpath = ["src"]