1
1
[project ]
2
2
name = " structlog-sentry-logger"
3
- version = " 1.6.1 "
3
+ version = " 1.6.2 "
4
4
description = " Log without the setup via a pre-configured structlog logger with optional Sentry integration"
5
5
authors = [
6
- { name = " Teo Zosa" },
6
+ { name = " Teo Zosa" },
7
7
]
8
8
license = " Apache-2.0"
9
9
readme = " README.md"
10
10
requires-python = " >=3.9,<3.14"
11
- keywords = [" logging" , " structured" , " structure" , " log" , " structured logging" , " sentry" , " structlog" , " structlog-sentry" ]
11
+ keywords = [
12
+ " logging" ,
13
+ " structured" ,
14
+ " structure" ,
15
+ " log" ,
16
+ " structured logging" ,
17
+ " sentry" ,
18
+ " structlog" ,
19
+ " structlog-sentry" ,
20
+ ]
12
21
classifiers = [
13
22
" Intended Audience :: Developers" ,
14
23
" License :: OSI Approved :: Apache Software License" ,
@@ -65,35 +74,36 @@ docs = [
65
74
" sphinx>=4.1.2" ,
66
75
" sphinx-autoapi>=1.8.1,<4.0.0" ,
67
76
" sphinx-rtd-theme>=0.5.1,<3.1.0" ,
68
- " types-emoji>=1.2.4,<3.0.0" , # PEP 561 compliant stub packages for mypy
77
+ " types-emoji>=1.2.4,<3.0.0" ,
69
78
]
70
79
71
80
[project .urls ]
72
81
Homepage = " https://github.com/TeoZosa/structlog-sentry-logger"
73
82
Repository = " https://github.com/TeoZosa/structlog-sentry-logger"
74
83
Changelog = " https://github.com/TeoZosa/structlog-sentry-logger/releases"
75
84
76
- # ################################################################################
77
- # Tooling configs #
78
- # ################################################################################
79
85
[tool .black ]
80
86
line-length = 120
81
87
82
88
[tool .coverage .run ]
83
89
branch = true
84
- concurrency = [" multiprocessing" ]
90
+ concurrency = [
91
+ " multiprocessing" ,
92
+ ]
85
93
parallel = true
86
- source = [" structlog_sentry_logger" ]
94
+ source = [
95
+ " structlog_sentry_logger" ,
96
+ ]
87
97
88
98
[tool .coverage .report ]
89
- exclude_lines =[
99
+ exclude_lines = [
90
100
" pragma: no cover" ,
91
101
" raise AssertionError" ,
92
102
" raise NotImplementedError" ,
93
103
" if __name__ == .__main__.:" ,
94
104
]
95
105
fail_under = 100
96
- omit =[
106
+ omit = [
97
107
" structlog_sentry_logger/structlog_sentry.py" ,
98
108
]
99
109
show_missing = true
@@ -115,7 +125,7 @@ ignore-semiprivate = false
115
125
ignore-private = false
116
126
ignore-property-decorators = false
117
127
ignore-module = false
118
- fail-under = 0 # adjust `fail-under` value as quality standards permit
128
+ fail-under = 0
119
129
whitelist-regex = []
120
130
color = true
121
131
@@ -129,48 +139,53 @@ show_error_context = true
129
139
show_error_codes = true
130
140
131
141
[tool .pytest .ini_options ]
132
- addopts = [" -rfsxX" , " -l" , " --tb=short" , " --strict-markers" , " -vv" , " --emoji" , " --xdoctest" ]
142
+ addopts = [
143
+ " -rfsxX" ,
144
+ " -l" ,
145
+ " --tb=short" ,
146
+ " --strict-markers" ,
147
+ " -vv" ,
148
+ " --emoji" ,
149
+ " --xdoctest" ,
150
+ ]
133
151
xfail_strict = true
134
- testpaths = [" tests" ,]
135
- norecursedirs = [" .*" , " *.egg" , " build" , " dist" ,]
152
+ testpaths = [
153
+ " tests" ,
154
+ ]
155
+ norecursedirs = [
156
+ " .*" ,
157
+ " *.egg" ,
158
+ " build" ,
159
+ " dist" ,
160
+ ]
136
161
137
162
[tool .ruff ]
138
163
line-length = 120
139
-
140
164
select = [
141
- " F" , # Pyflakes
142
- " E" , " W" , # pycodestyle
143
- " C90" , # McCabe
144
- " I" , # isort
145
- " D" , # pydocstyle
146
- " UP" , # pyupgrade
147
- " PLC" , " PLE" , " PLR" , " PLW" , # Pylint
165
+ " F" ,
166
+ " E" ,
167
+ " W" ,
168
+ " C90" ,
169
+ " I" ,
170
+ " D" ,
171
+ " UP" ,
172
+ " PLC" ,
173
+ " PLE" ,
174
+ " PLR" ,
175
+ " PLW" ,
148
176
]
149
-
150
-
151
177
ignore = [
152
- # pycodestyle:
153
- " E501" , # Line too long (covered by Black)
178
+ " E501" ,
154
179
]
155
-
156
180
fix = true
157
-
158
- # Group violations by containing file.
159
181
format = " grouped"
160
-
161
- # By default, always show source code snippets.
162
182
show-source = true
163
-
164
- # Assume Python 3.9
165
- # Note: helps prevent breaking autofixes from, e.g., pyupgrade
166
183
target-version = " py39"
167
184
168
185
[tool .ruff .isort ]
169
- # Note: Ruff implicitly uses `profile = "black"`
170
186
combine-as-imports = true
171
187
172
188
[tool .ruff .mccabe ]
173
- # # cyclomatic complexity (https://github.com/PyCQA/mccabe)
174
189
max-complexity = 10
175
190
176
191
[tool .ruff .pydocstyle ]
@@ -179,17 +194,17 @@ convention = "google"
179
194
[tool .uv ]
180
195
python-preference = " only-managed"
181
196
182
- [build-system ]
183
- requires = [" hatchling>=1.27.0" ]
184
- build-backend = " hatchling.build"
185
-
186
197
[tool .hatch .build .targets .wheel .hooks .mypyc ]
187
198
dependencies = [
188
199
" hatch-mypyc" ,
189
-
190
- # For Mypyc type annotations
191
200
" structlog" ,
192
201
" sentry-sdk" ,
193
202
" dotenv" ,
194
- " gitpython"
203
+ " gitpython" ,
195
204
]
205
+
206
+ [build-system ]
207
+ requires = [
208
+ " hatchling>=1.27.0" ,
209
+ ]
210
+ build-backend = " hatchling.build"
0 commit comments