Skip to content

Commit c6da40a

Browse files
committed
chore: 🔇 filter rdflib JSON-LD deprecation warnings
1 parent 9944712 commit c6da40a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ skip_dirs = [".git", ".github", ".vscode"]
106106

107107
[tool.pytest.ini_options]
108108
testpaths = ["tests"]
109+
filterwarnings = [
110+
# Ignore deprecation warnings from rdflib's JSON-LD parser,
111+
# used internally by pyshacl. These warnings are unrelated to
112+
# our code and currently noisy.
113+
# See: https://github.com/RDFLib/rdflib/issues/3064
114+
# Fix in progress: https://github.com/RDFLib/rdflib/issues/3302
115+
"ignore::DeprecationWarning:rdflib.plugins.parsers.jsonld",
116+
]
109117

110118
[tool.typos.files]
111119
extend-exclude = ["tests/data","docs/diagrams","*.json","*.html","*__init__.py"]

pytest.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@
1717
; log_cli=true
1818
; log_level=DEBUG
1919
addopts = -n auto
20-
; filterwarnings =
20+
filterwarnings =
21+
# Ignore deprecation warnings from rdflib's JSON-LD parser,
22+
# used internally by pyshacl. These warnings are unrelated to
23+
# our code and currently noisy.
24+
# See: https://github.com/RDFLib/rdflib/issues/3064
25+
# Fix in progress: https://github.com/RDFLib/rdflib/issues/3302
26+
ignore::DeprecationWarning:rdflib.plugins.parsers.jsonld

0 commit comments

Comments
 (0)