Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (65 loc) · 1.94 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (65 loc) · 1.94 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
[project]
name = "smooai-logger"
version = "4.5.4"
description = "Context-aware structured logging utilities for Python that mirror the @smooai/logger toolkit."
readme = "README.md"
authors = [{ name = "SmooAI", email = "brent@smooai.com" }]
license = { text = "MIT" }
requires-python = ">=3.12"
dependencies = [
"colorist>=1.5.2",
# opentelemetry-api ONLY — read the active span for trace/span correlation.
# NEVER depend on smooai-observability (circular).
"opentelemetry-api>=1.27",
"pendulum>=3.0.0",
"pydantic>=2.7.0",
"pydantic-extra-types>=2.0.0",
"rich>=13.0.0",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
keywords = ["logging", "aws", "structured-logging", "smooai", "observability"]
[project.urls]
Homepage = "https://github.com/SmooAI/logger"
Repository = "https://github.com/SmooAI/logger"
Issues = "https://github.com/SmooAI/logger/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = ["poethepoet>=0.29.0", "pytest>=8.3.0", "ruff>=0.11.6,<0.12", "basedpyright>=1.29.2"]
[tool.poe.tasks.install-dev]
cmd = "uv sync --locked --group dev"
[tool.poe.tasks.build]
cmd = "uv build --wheel --sdist"
[tool.poe.tasks.publish]
sequence = [
{ shell = "rm -rf dist/" },
{ cmd = "uv build --wheel --sdist" },
{ cmd = "uv publish" },
]
[tool.poe.tasks.typecheck]
cmd = "basedpyright"
[tool.poe.tasks.typecheck-errors]
cmd = "basedpyright --level error"
[tool.poe.tasks.format]
cmd = "ruff format"
[tool.poe.tasks.lint]
cmd = "ruff check"
[tool.poe.tasks."lint:fix"]
cmd = "ruff check --fix"
[tool.poe.tasks.test]
cmd = "uv run pytest"
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
[tool.ruff]
line-length = 160
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]