Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2024
1 parent 5907e2b commit f55e46f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
17 changes: 10 additions & 7 deletions attune/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ def catalog():
@click.option("-n", default=10)
def history(instrument, n=10):
title_string = f"{instrument}, from latest to earliest"
print(title_string + "-"*(80-len(instrument)))
print(title_string + "-" * (80 - len(instrument)))
current = _store.load(instrument)
for i in range(n):
try:
print("{0:4} {1}{2} at {3}".format(
-i,
current.transition.type,
"." * (20-len(current.transition.type)),
str(current.load)))
try:
print(
"{0:4} {1}{2} at {3}".format(
-i,
current.transition.type,
"." * (20 - len(current.transition.type)),
str(current.load),
)
)
current = _store.undo(current)
except ValueError: # reached end of history
print("<end of history>")
Expand Down
4 changes: 3 additions & 1 deletion attune/attune/_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def _leaf(self):
if self.dep_units is not None:
out += " ({0})".format(self.dep_units)
if self.independent.size != 1:
out += " {0} points, {1}monotonic".format(self.independent.size, "" if self.monotonic else "non-")
out += " {0} points, {1}monotonic".format(
self.independent.size, "" if self.monotonic else "non-"
)
return out

@property
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,5 @@ def read(fname):
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
],
entry_points = {
"console_scripts": ['attune = attune.__main__:main']
}
entry_points={"console_scripts": ["attune = attune.__main__:main"]},
)

0 comments on commit f55e46f

Please sign in to comment.