Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Sep 10, 2024
1 parent 364b64f commit cb0edf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dynamic = ["version"] # Version is read from rhodium/__init__.py
test = [
"pytest",
"flake8",
"flake8-pyproject",
"rhodium[examples]"
]
openmdao = [
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rhodium/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb0edf6

Please sign in to comment.