Skip to content

Commit

Permalink
Run black on the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Sep 6, 2023
1 parent 47bd6ff commit 1886761
Show file tree
Hide file tree
Showing 4 changed files with 479 additions and 467 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
[build-system]
requires = ["oldest-supported-numpy", "cython", "setuptools"]

[tool.black]
line-length = 110
target-version = ["py37"]

[tool.isort]
profile = "black"
line_length = 110
1 change: 1 addition & 0 deletions support/palvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def read_pal_version():
(major, minor, patch) = verstring.split(".")
return (verstring, major, minor, patch)


if __name__ == "__main__":
v, maj, min, p = read_pal_version()
print(v, maj, min, p)
5 changes: 3 additions & 2 deletions support/sst2pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def read_prologs(filename):
# Flush current heading
prolog[heading] = content
content = ""
name = prolog['name'].strip()
name = prolog["name"].strip()
results[name] = prolog
prolog = None
continue
Expand Down Expand Up @@ -104,9 +104,10 @@ def read_prologs(filename):
continue

if counter:
raise ValueError("Error parsing SST prologue line "+str(counter)+":'" + line + "'")
raise ValueError("Error parsing SST prologue line " + str(counter) + ":'" + line + "'")
return results


if __name__ == "__main__":
results = read_prologs("cextern/pal/palAddet.c")
print(results)
Loading

0 comments on commit 1886761

Please sign in to comment.