-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (84 loc) · 2.05 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
[project]
name = "motrpac-backend-utils"
version = "0.7.1"
description = "Common utilities for MoTrPAC services"
authors = [{ name = "Mihir Samdarshi", email = "[email protected]" }]
packages = [{ include = "src/motrpac_backend_utils" }]
license = "Apache-2.0"
requires-python = ">=3.11"
dependencies = [
"google-auth",
"google-cloud-logging",
"opentelemetry-api",
"opentelemetry-exporter-gcp-trace",
"opentelemetry-instrumentation-requests",
"opentelemetry-instrumentation-urllib3",
"opentelemetry-propagator-gcp",
"opentelemetry-sdk",
"typing-extensions",
]
[project.optional-dependencies]
zipper = [
"google-cloud-storage",
"google-cloud-pubsub",
"psutil",
"smart-open",
"protobuf~=4.21"
]
messaging = ["google-cloud-pubsub", "protobuf~=4.21"]
flask = ["flask"]
dev = ["ruff", "isort"]
test = ["pytest~=8.2.2", "pytest-mock~=3.14", "pytest-cov~=5.0"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
# Which packages we want to build/distribute.
# There are also ways of including additional files, such as data files.
# See the Hatch documentation for more information.
[tool.hatch.build.targets.wheel]
packages = ["src/motrpac_backend_utils"]
# Pytest is a testing framework for Python.
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"-ra", "--full-trace",
"--import-mode=importlib",
"--cov=src/motrpac_backend_utils",
"--cov-branch",
"--cov-report=xml",
"--cov-report=term-missing",
]
testpaths = ["tests"]
pythonpath = ["src"]
[tool.ruff]
line-length = 90
target-version = "py311"
exclude = ["*_pb2.py", "*_pb2.pyi"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN002",
"ANN003",
"ANN101",
"ANN102",
"ANN401",
"BLE001",
"D104",
"D105",
"D107",
"D200",
"D203",
"D205",
"D212",
"D401",
"DTZ",
"I001",
"INP001",
"E501",
"F401",
"PLR2004"
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D100", "D101", "D102", "D103", "S101"]