diff --git a/pyproject.toml b/pyproject.toml index 4281ce3..97f959c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ dynamic = ["version"] # Version is read from rhodium/__init__.py test = [ "pytest", "flake8", + "flake8-pyproject", "rhodium[examples]" ] openmdao = [ @@ -58,7 +59,8 @@ exclude = [ ".git", "__pycache__", "build", - "examples/Languages/C/src" + "examples/Languages/C/src", + "examples" # TODO: Remove this exclusion once examples are updated ] extend-ignore = [ "E302", # Expected 2 blank lines, found N diff --git a/rhodium/model.py b/rhodium/model.py index c5baf7b..db0379c 100644 --- a/rhodium/model.py +++ b/rhodium/model.py @@ -571,7 +571,7 @@ class DataSet(list): def __init__(self, data=[]): if isinstance(data, str): - self.load(data) + warnings.warn("use load(file, ...) instead of DataSet(file)", DeprecationWarning, stacklevel=2) else: for entry in data: self.append(entry)