Skip to content

Commit

Permalink
fix: turn on deprecation warning and upgrade jsonlogger
Browse files Browse the repository at this point in the history
Change-Id: Iffecd80cbe838b67986f352ea87f31c678d5e567
  • Loading branch information
jd committed Dec 13, 2024
1 parent 7b44a59 commit 5089f2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daiquiri/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import logging
import typing

from pythonjsonlogger import jsonlogger
from pythonjsonlogger import json as jsonlogger

from daiquiri import types

Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.13",
]
dependencies = [
"python-json-logger"
"python-json-logger >= 3"
]

[project.urls]
Expand All @@ -50,3 +50,9 @@ target-version = ['py310', 'py311', 'py312', 'py313']
files = "daiquiri"
show_error_codes = true
strict = true

[tool.pytest.ini_options]
filterwarnings = [
"error::DeprecationWarning",
]
testpaths = ["daiquiri/tests"]

0 comments on commit 5089f2c

Please sign in to comment.