Run black code formatter on all source code files
This commit is contained in:
parent
ce4a5e84e0
commit
c7d465404f
@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
.. author:: Eric Torres
|
.. author:: Eric Torres
|
||||||
.. module:: hierarchy
|
.. module:: rbackup.hierarchy
|
||||||
:synopsis: Classes for creating the backup 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
|
* A symlink in the root of the repository symlinking to the
|
||||||
most recent snapshot
|
most recent snapshot
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, dest):
|
def __init__(self, dest):
|
||||||
"""Default constructor for the Repository class."""
|
"""Default constructor for the Repository class."""
|
||||||
super().__init__(dest)
|
super().__init__(dest)
|
||||||
@ -122,7 +123,7 @@ class Snapshot(Hierarchy):
|
|||||||
>>> snapshots = repo.snapshots
|
>>> snapshots = repo.snapshots
|
||||||
>>> prev = snapshots[-1]
|
>>> prev = snapshots[-1]
|
||||||
>>> prev.name
|
>>> prev.name
|
||||||
>>> 'backup/data/snapshot-{prevtime}'
|
>>> 'snapshot-{prevtime}'
|
||||||
>>> prev.home_dir
|
>>> prev.home_dir
|
||||||
>>> 'backup/data/snapshot-{prevtime}/home'
|
>>> 'backup/data/snapshot-{prevtime}/home'
|
||||||
>>> curr = repo.curr_snapshot
|
>>> curr = repo.curr_snapshot
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
|
"""
|
||||||
|
.. author:: Eric Torres
|
||||||
|
.. module:: rbackup.rsync
|
||||||
|
:synopsis: helper functions for running the rsync backend
|
||||||
|
"""
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
_RSYNC_BIN = '/usr/bin/rsync'
|
_RSYNC_BIN = "/usr/bin/rsync"
|
||||||
|
|
||||||
|
|
||||||
# ========== Functions ==========
|
# ========== Functions ==========
|
||||||
|
2
setup.py
2
setup.py
@ -13,7 +13,7 @@ setuptools.setup(
|
|||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="",
|
url="",
|
||||||
packages=setuptools.find_packages(),
|
packages=setuptools.find_packages(),
|
||||||
scripts=['bin/backup'],
|
scripts=["bin/backup"],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user