-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
133 lines (120 loc) · 3.08 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[tool.poetry]
name = "troncos"
version = "5.1.0"
description = "Collection of Python logging, tracing and profiling tools"
authors = [
"Guðmundur Björn Birkisson <gudmundur.birkisson@oda.com>",
"Karl Fredrik Haugland <karlfredrik.haugland@oda.com>",
"Eirik Martiniussen Sylliaas <eirik.sylliaas@oda.com>",
]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/kolonialno/troncos"
repository = "https://github.com/kolonialno/troncos"
documentation = "https://github.com/kolonialno/troncos"
keywords = ["logs", "traces", "opentelemetry"]
[tool.poetry.dependencies]
ddtrace = ">=2,<3"
opentelemetry-exporter-otlp-proto-grpc = { version = ">=1.19,<2", optional = true }
opentelemetry-exporter-otlp-proto-http = ">=1.19,<2"
opentelemetry-sdk = ">=1.19,<2"
pyroscope-io = ">=0.8.0,<1"
python = ">=3.10,<4.0"
python-ipware = ">=2,<4"
structlog-sentry = { version = ">=2.0.0,<3", optional = true }
[tool.poetry.extras]
grpc = ["opentelemetry-exporter-otlp-proto-grpc"]
sentry = ["structlog-sentry"]
[tool.poetry.group.dev.dependencies]
black = "^24.0.0"
celery = "^5.3.4"
django = "^5.0.0"
django-environ = "^0.11.0"
fastapi = ">=0.111,<0.112"
ipython = "^8.14.0"
isort = "^5.12.0"
mkdocs-techdocs-core = "^1.2.3"
mypy = "^1.5.0"
pytest = "^8.0.0"
pytest_codeblocks = "^0.17.0"
pytest-asyncio = ">=0.23.1,<0.24.0"
pytest-benchmark = "^4.0.0"
pytest-cov = "^4.1.0"
pytest-httpserver = "^1.0.8"
requests = "^2.31.0"
snakeviz = "^2.2.0"
structlog = "^24.0.0"
types-requests = "^2.28.11.14"
ruff = "^0.4.10"
[tool.black]
target-version = ['py311']
line-length = 88
include = '\.pyi?$'
[tool.isort]
profile = "black"
skip_gitignore = true
combine_as_imports = true
[tool.mypy]
python_version = "3.11"
files = ["./troncos", "./tests"]
namespace_packages = true
show_error_codes = true
ignore_missing_imports = true
follow_imports = "normal"
strict = true
[[tool.mypy.overrides]]
module = ["opentelemetry.sdk.*", "opentelemetry.context.*"]
implicit_reexport = true
[tool.pytest.ini_options]
minversion = 6.0
python_files = "test_*.py"
python_functions = "test_*"
cache_dir = ".pytest_cache"
# Silence warning by opting in to use pytest 6's new default value
junit_family = "xunit2"
# Include captured log messages in system-out in Jenkins report file
junit_logging = "system-out"
console_output_style = "classic"
empty_parameter_set_mark = "xfail"
log_cli_level = "INFO"
log_level = "INFO"
filterwarnings = ["ignore::DeprecationWarning"]
addopts = [
"--ignore=perf"
]
[tool.ruff]
line-length = 88
exclude = [
".git",
".github",
".venv",
"__pycache__",
]
[tool.ruff.lint]
select = [
# Regular flake8 rules
"C", "E", "F", "W",
# flake8-bugbear rules
"B",
# Import sorting rules
# "I",
# flake8-comprehensions
"C4",
# flake8 django
"DJ",
# Pylint rules
"PLC", "PLE", "PLR", "PLW",
# Ruff
"RUF",
]
ignore = [
# C901 is too complex
"C901",
# PLR2004 Magic value used in comparison
"PLR2004",
# PLR0913 Too many arguments in function definition
"PLR0913",
]
[build-system]
requires = ["poetry-core>=1.1.0a6"]
build-backend = "poetry.core.masonry.api"