Skip to content

Commit 0203e83

Browse files
authored
Deprecate passing ds arg to every checker
1 parent 60dabbd commit 0203e83

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

compliance_checker/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ class BaseCheck:
142142

143143
supported_ds = []
144144

145+
@deprecated(
146+
"Passing the dataset to every single check is deprecated. The future version will take the ds only in the test constructor.",
147+
)
145148
def setup(self, ds):
146149
"""
147150
Common setup method for a Checker.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,5 @@ ini_options.filterwarnings = [
145145
"ignore:unclosed database in", # Not sure what is causing this one, only happens in Python 3.13.
146146
"ignore:unclosed file", # Should make Windows + Python 3.10 and 3.11 pass, we should check when this warning was triggered first.
147147
"ignore:The ioos_sos checker is deprecated and will be removed",
148+
"ignore:Passing the dataset to every single check is deprecated."
148149
]

0 commit comments

Comments
 (0)