generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
115 lines (102 loc) · 2.94 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools-scm[toml]>=6.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "RecordLinker"
dynamic = ["version"]
description = "An API for linking health care records using Patient PII"
authors = [
{name = "Brandon Mader", email = "[email protected]"},
{name = "Dan Paseltiner", email = "[email protected]"},
{name = "Marcelle Goggins", email = "[email protected]"},
{name = "Eric Buckley", email = "[email protected]"},
{name = "Alex Hayward", email = "[email protected]"},
{name = "Cason Brinson", email = "[email protected]"},
{name = "Derek Dombek", email = "[email protected]"},
]
license = { file = "LICENSE" }
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.11"
dependencies = [
"uvicorn",
"fastapi",
"pydantic",
"pydantic-settings",
"python-dateutil==2.9.0.post0",
"sqlalchemy",
"rapidfuzz",
# Observability
"python-json-logger",
"asgi-correlation-id",
# Database drivers
"psycopg2-binary", # PostgreSQL
"PyMySQL", # MySQL & MariaDB
"cryptography", # MySQL & MariaDB dependency
"pyodbc", # Microsoft SQL Server
]
[project.optional-dependencies]
dev = [
# development-only dependencies here
"fastapi[standard]",
"ruff",
"mypy",
"types-python-dateutil",
# Testing
"pytest>=8.3",
"pytest-cov",
"pytest-env",
# Observability
"opentelemetry-api",
"opentelemetry-sdk",
# Documentation
"mkdocs",
"mkdocs-mermaid2-plugin",
"mkdocs-material",
]
prod = [
# List any additional production-only dependencies here
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.package-data]
recordlinker = ["assets/*"]
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
write_to = "src/recordlinker/_version.py"
version_scheme = "post-release"
local_scheme = "node-and-timestamp"
fallback_version = "0.0.0"
[tool.ruff]
exclude = [".git", ".pytest_cache", "__pycache__", "docs"]
line-length = 100
indent-width = 4
target-version = "py310"
show-fixes = true
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "D102", "D103", "D104", "D105", "D106"] # Defaults
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["D"]
"tests/*.py" = ["D102", "D103"] # Ignore the public docstring rules in test files
[tool.ruff.lint.isort]
# The following settings reduce the number of changes from reorder-python-imports
force-single-line = true
order-by-type = false
[tool.pytest.ini_options]
testpaths = ["tests/unit"]
pythonpath = ["src", "tests/unit"]
filterwarnings = [
"ignore:typing.io is deprecated, import directly from typing instead:DeprecationWarning"
]
env = [
"INITIAL_ALGORITHMS=",
]
[tool.coverage.run]
omit = [
# Omit the generated version file from coverage
"src/recordlinker/_version.py",
]
[tool.mypy]
files = ["src"]
mypy_path = ["src"]