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 Feb 17, 2024
1 parent a4a0a45 commit 6c59e2a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 6 additions & 2 deletions WrightTools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ def scan(directory=None, no_recursion=False):
desc["filesize"] = f"{os.path.getsize(path) / 1e6:.1f}"
path = path.relative_to(directory)
print(path.parent)
desc["path"] = f"[link={path.parent}]{path.parent}[/link]" + r"\\" if str(path.parent) != "." else ""
desc["path"] += f"[bold]{path.name}[/bold]"
desc["path"] = (
f"[link={path.parent}]{path.parent}[/link]" + r"\\"
if str(path.parent) != "."
else ""
)
desc["path"] += f"[bold]{path.name}[/bold]"
# desc["path"] = f"[link={str(path)}]{path}[/link]"
row = [f"{i}"] + [
str(desc[k])
Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ def read(fname):
license="MIT",
url="http://wright.tools",
keywords="spectroscopy science multidimensional visualization",
entry_points={"console_scripts": [
"wt-tree=WrightTools.__main__:tree",
"wt5=WrightTools.__main__:wt5",
"wt-convert=WrightTools.__main__:convert"
]},
entry_points={
"console_scripts": [
"wt-tree=WrightTools.__main__:tree",
"wt5=WrightTools.__main__:wt5",
"wt-convert=WrightTools.__main__:convert",
]
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 6c59e2a

Please sign in to comment.