Run black code formatter on all source code files

This commit is contained in:
Eric Torres 2019-03-14 09:04:51 -07:00
parent ce4a5e84e0
commit c7d465404f
3 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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 ==========

View File

@ -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",