hydra-structlog 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/PKG-INFO +3 -1
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/pyproject.toml +5 -8
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/pyproject.toml.orig +13 -18
- hydra_structlog-1.0.3/src/hydra_structlog/__init__.py +1 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/init.py +1 -1
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/plugin.py +6 -1
- hydra_structlog-1.0.2/src/hydra_structlog/__init__.py +0 -1
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/LICENSE +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/README.md +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_plugins/hydra_structlog/__init__.py +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_plugins/hydra_structlog/py.typed +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/conf/__init__.py +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/conf/hydra/job_logging/structlog.yaml +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/formatters.py +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/handlers.py +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/processors.py +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/py.typed +0 -0
- {hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_structlog/resolvers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hydra-structlog
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: An opinionated hydra plugin to configure logging with structlog
|
|
5
5
|
Keywords: hydra,structlog,plugin,hydra-zen
|
|
6
6
|
Author: Sören Zapp
|
|
@@ -13,6 +13,8 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
16
18
|
Classifier: Intended Audience :: Developers
|
|
17
19
|
Classifier: Intended Audience :: Information Technology
|
|
18
20
|
Classifier: Operating System :: OS Independent
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "hydra-structlog"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.3"
|
|
4
4
|
description = "An opinionated hydra plugin to configure logging with structlog"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
keywords = [
|
|
@@ -19,6 +19,8 @@ classifiers = [
|
|
|
19
19
|
"Programming Language :: Python :: 3.11",
|
|
20
20
|
"Programming Language :: Python :: 3.12",
|
|
21
21
|
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
|
+
"Programming Language :: Python :: 3.15",
|
|
22
24
|
"Intended Audience :: Developers",
|
|
23
25
|
"Intended Audience :: Information Technology",
|
|
24
26
|
"Operating System :: OS Independent",
|
|
@@ -76,10 +78,7 @@ line-length = 88
|
|
|
76
78
|
|
|
77
79
|
[tool.ruff.lint]
|
|
78
80
|
extend-select = [
|
|
79
|
-
"I",
|
|
80
81
|
"E501",
|
|
81
|
-
"UP006",
|
|
82
|
-
"UP035",
|
|
83
82
|
"D200",
|
|
84
83
|
"D209",
|
|
85
84
|
"D210",
|
|
@@ -88,7 +87,6 @@ extend-select = [
|
|
|
88
87
|
"D405",
|
|
89
88
|
"D416",
|
|
90
89
|
]
|
|
91
|
-
ignore = ["E731"]
|
|
92
90
|
|
|
93
91
|
[tool.ruff.lint.per-file-ignores]
|
|
94
92
|
"**/tests/**/test_*.py" = ["S101"]
|
|
@@ -104,11 +102,10 @@ unused-type-ignore-comment = "ignore"
|
|
|
104
102
|
|
|
105
103
|
[tool.pytest]
|
|
106
104
|
strict_xfail = true
|
|
105
|
+
filterwarnings = ["error"]
|
|
107
106
|
addopts = [
|
|
108
107
|
"-ra",
|
|
109
108
|
"-vv",
|
|
110
|
-
"-p",
|
|
111
|
-
"no:tach",
|
|
112
109
|
"--strict-markers",
|
|
113
110
|
"--strict-config",
|
|
114
111
|
"--doctest-modules",
|
|
@@ -143,5 +140,5 @@ exclude = ["*.cache"]
|
|
|
143
140
|
style = "google"
|
|
144
141
|
|
|
145
142
|
[build-system]
|
|
146
|
-
requires = ["uv_build>=0.
|
|
143
|
+
requires = ["uv_build>=0.13.0,<0.14.0"]
|
|
147
144
|
build-backend = "uv_build"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "hydra-structlog"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.3"
|
|
4
4
|
description = "An opinionated hydra plugin to configure logging with structlog"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -17,6 +17,8 @@ classifiers = [
|
|
|
17
17
|
'Programming Language :: Python :: 3.11',
|
|
18
18
|
'Programming Language :: Python :: 3.12',
|
|
19
19
|
'Programming Language :: Python :: 3.13',
|
|
20
|
+
'Programming Language :: Python :: 3.14',
|
|
21
|
+
'Programming Language :: Python :: 3.15',
|
|
20
22
|
'Intended Audience :: Developers',
|
|
21
23
|
'Intended Audience :: Information Technology',
|
|
22
24
|
"Operating System :: OS Independent",
|
|
@@ -61,7 +63,7 @@ default-groups = [
|
|
|
61
63
|
]
|
|
62
64
|
|
|
63
65
|
[build-system]
|
|
64
|
-
requires = ["uv_build>=0.
|
|
66
|
+
requires = ["uv_build>=0.13.0,<0.14.0"]
|
|
65
67
|
build-backend = "uv_build"
|
|
66
68
|
|
|
67
69
|
[tool.uv.build-backend]
|
|
@@ -72,20 +74,14 @@ line-length = 88
|
|
|
72
74
|
|
|
73
75
|
[tool.ruff.lint]
|
|
74
76
|
extend-select = [
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"D403", # first-word-capitalized
|
|
84
|
-
"D405", # non-capitalized-section-name
|
|
85
|
-
"D416", # missing-section-name-colon
|
|
86
|
-
]
|
|
87
|
-
ignore = [
|
|
88
|
-
"E731", # lambda-assignment
|
|
77
|
+
"E501", # line-too-long
|
|
78
|
+
"D200", # unnecessary-multiline-docstring
|
|
79
|
+
"D209", # new-line-after-last-paragraph
|
|
80
|
+
"D210", # surrounding-whitespace
|
|
81
|
+
"D212", # multi-line-summary-first-line
|
|
82
|
+
"D403", # first-word-capitalized
|
|
83
|
+
"D405", # non-capitalized-section-name
|
|
84
|
+
"D416", # missing-section-name-colon
|
|
89
85
|
]
|
|
90
86
|
|
|
91
87
|
[tool.ruff.lint.per-file-ignores]
|
|
@@ -102,11 +98,10 @@ unused-type-ignore-comment = "ignore"
|
|
|
102
98
|
|
|
103
99
|
[tool.pytest]
|
|
104
100
|
strict_xfail = true # Error on successful tests that should fail
|
|
101
|
+
filterwarnings = ["error"] # Warnings suggest code that is about to break
|
|
105
102
|
addopts = [
|
|
106
103
|
"-ra", # More insights
|
|
107
104
|
"-vv", # Show parametrized test names
|
|
108
|
-
"-p",
|
|
109
|
-
"no:tach", # Skipping tests skews coverage
|
|
110
105
|
"--strict-markers", # Prevent silent bugs
|
|
111
106
|
"--strict-config", # Report errors in config
|
|
112
107
|
"--doctest-modules", # Test code examples in doc strings
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.3"
|
|
@@ -92,7 +92,7 @@ def exception_logger(
|
|
|
92
92
|
|
|
93
93
|
message = getattr(exc_value, "message", str(exc_value))
|
|
94
94
|
exc_info = exc_type, exc_value, exc_traceback
|
|
95
|
-
logger.critical(message, exc_info=exc_info)
|
|
95
|
+
logger.critical("%s: %s", exc_type.__name__, message, exc_info=exc_info)
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
def init_plugin(
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import warnings
|
|
2
|
+
|
|
1
3
|
from hydra.core.config_search_path import ConfigSearchPath
|
|
2
4
|
from hydra.plugins.search_path_plugin import SearchPathPlugin
|
|
3
5
|
from omegaconf import OmegaConf
|
|
@@ -7,5 +9,8 @@ from .resolvers import dev_switch
|
|
|
7
9
|
|
|
8
10
|
class HydraStructlogSearchPathPlugin(SearchPathPlugin):
|
|
9
11
|
def manipulate_search_path(self, search_path: ConfigSearchPath) -> None:
|
|
10
|
-
|
|
12
|
+
with warnings.catch_warnings():
|
|
13
|
+
# The deprecation was not followed through but reverted in later versions
|
|
14
|
+
warnings.filterwarnings("ignore", r".*register_resolver\(\) is deprecated")
|
|
15
|
+
OmegaConf.register_resolver("hydra-structlog.dev", dev_switch)
|
|
11
16
|
search_path.append("hydra-structlog", "pkg://hydra_structlog.conf")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.2"
|
|
File without changes
|
|
File without changes
|
{hydra_structlog-1.0.2 → hydra_structlog-1.0.3}/src/hydra_plugins/hydra_structlog/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|