Blacken deploy.py

This commit is contained in:
2021-05-17 11:45:08 -07:00
parent 3cb8ff8a33
commit 6530e35130

View File

@@ -8,19 +8,19 @@ dotdir = Path(__file__).parent.resolve().absolute()
simple = [
# 'gemrc',
'gitconfig',
'ideavimrc',
'lein',
"gitconfig",
"ideavimrc",
"lein",
# 'irbrc',
# 'nethackrc',
# 'spacemacs',
'tmux.conf',
'vimrc'
"tmux.conf",
"vimrc",
]
targeted = {
'doom': '.doom.d',
'fish': '.config/fish',
"doom": ".doom.d",
"fish": ".config/fish",
}
@@ -29,7 +29,9 @@ def deploy(source_name, target_name, dry_run=False):
target = home.joinpath(target_name)
if not source.exists():
raise FileNotFoundError(f"Asked to link {source_name}, which doesn't exist in {dotdir}.")
raise FileNotFoundError(
f"Asked to link {source_name}, which doesn't exist in {dotdir}."
)
if target.exists():
if target.samefile(source):
@@ -61,7 +63,7 @@ def main(dry_run=True):
deploy(source, target, dry_run=dry_run)
if __name__ == '__main__':
if __name__ == "__main__":
try:
main(False)
except FileNotFoundError as e: