From c7d465404f5bc9604437f4c0684ea570f6c91297 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 14 Mar 2019 09:04:51 -0700 Subject: [PATCH] Run black code formatter on all source code files --- rbackup/hierarchy.py | 5 +++-- rbackup/rsync.py | 7 ++++++- setup.py | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/rbackup/hierarchy.py b/rbackup/hierarchy.py index 3290eff..b3346b4 100644 --- a/rbackup/hierarchy.py +++ b/rbackup/hierarchy.py @@ -1,6 +1,6 @@ """ .. author:: Eric Torres -.. module:: hierarchy +.. module:: rbackup.hierarchy :synopsis: Classes for creating the backup hierarchy. """ @@ -50,6 +50,7 @@ class Repository(Hierarchy): * A symlink in the root of the repository symlinking to the most recent snapshot """ + def __init__(self, dest): """Default constructor for the Repository class.""" super().__init__(dest) @@ -122,7 +123,7 @@ class Snapshot(Hierarchy): >>> snapshots = repo.snapshots >>> prev = snapshots[-1] >>> prev.name - >>> 'backup/data/snapshot-{prevtime}' + >>> 'snapshot-{prevtime}' >>> prev.home_dir >>> 'backup/data/snapshot-{prevtime}/home' >>> curr = repo.curr_snapshot diff --git a/rbackup/rsync.py b/rbackup/rsync.py index f5eed3c..f212e16 100644 --- a/rbackup/rsync.py +++ b/rbackup/rsync.py @@ -1,8 +1,13 @@ +""" +.. author:: Eric Torres +.. module:: rbackup.rsync + :synopsis: helper functions for running the rsync backend +""" import subprocess # ========== Constants ========== -_RSYNC_BIN = '/usr/bin/rsync' +_RSYNC_BIN = "/usr/bin/rsync" # ========== Functions ========== diff --git a/setup.py b/setup.py index be29002..aec6987 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setuptools.setup( long_description_content_type="text/markdown", url="", packages=setuptools.find_packages(), - scripts=['bin/backup'], + scripts=["bin/backup"], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",