Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (66 loc) · 1.83 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (66 loc) · 1.83 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
[project]
name = "gfmodules-python-logging-library"
version = "0.8.0"
description = "Provides logging utilities for GFModules Python projects."
license = "EUPL-1.2"
authors = [{ name = "Ministerie van Volksgezondheid, Welzijn en Sport" }]
readme = "README.md"
requires-python = ">=3.11,<4.0"
dependencies = [
"pydantic (>=2.14.3,<3.0.0)",
]
[project.optional-dependencies]
# Only the request-context middleware and the exception primitives need a web
# framework, and starlette is all they need, as FastAPI re-exports its Request.
fastapi = ["starlette (>=1.10.0,<2.0)"]
[project.urls]
repository = "https://github.com/minvws/gfmodules-python-logging-library"
[tool.poetry]
packages = [
{ include = "gfmodules" },
]
[tool.poetry.group.dev.dependencies]
mypy = ">=2.4.1,<3.0.0"
pytest = "^9.2.0"
pytest-cov = "^7.0.0"
pytest-mock = "^3.17.0"
pytest-asyncio = "^1.4.1"
ruff = ">=0.17.4,<0.18.0"
codespell = "^2.2.6"
pip-audit = "^2.10.0"
# Required by starlette's TestClient, which the end-to-end tests drive.
httpx2 = "^2.16.0"
# Not a runtime dependency: the library needs starlette only. The tests build
# FastAPI applications, as the services using this library are.
fastapi = ">=0.162.4,<0.163.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
cache-dir = "~/.cache/ruff"
line-length = 120
include = [
"pyproject.toml",
"gfmodules/**/*.py",
"tests/**/*.py",
"examples/**/*.py",
]
[tool.mypy]
files = "gfmodules,tests,examples"
python_version = "3.11"
strict = true
cache_dir = "~/.cache/mypy"
ignore_missing_imports = true
explicit_package_bases = true
mypy_path = ".:examples"
[tool.pytest.ini_options]
cache_dir = "~/.cache/pytest"
testpaths = [
"tests",
"examples",
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["gfmodules"]
[tool.coverage.report]
fail_under = 95