Skip to content

Commit 8550475

Browse files
committed
Formatting
1 parent cd2445b commit 8550475

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

docs/config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Pair Section
6161
sync`` is executed. See also :ref:`collections_tutorial`.
6262

6363
The special values ``"from a"`` and ``"from b"``, tell vdirsyncer to try
64-
autodiscovery on a specific storage. It means all the collections on side A /
64+
autodiscovery on a specific storage. It means all the collections on side A /
6565
side B.
6666

6767
If the collection you want to sync doesn't have the same name on each side,
@@ -72,7 +72,7 @@ Pair Section
7272

7373
Examples:
7474

75-
- ``collections = ["from b", "foo", "bar"]`` makes vdirsyncer synchronize all
75+
- ``collections = ["from b", "foo", "bar"]`` makes vdirsyncer synchronize all
7676
the collections from side B, and also the collections named "foo" and "bar".
7777

7878
- ``collections = ["from b", "from a"]`` makes vdirsyncer synchronize all

docs/tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ as a file called ``color`` within the calendar folder.
176176
More information about collections
177177
----------------------------------
178178

179-
"Collection" is a collective term for addressbooks and calendars. A Cardav or
180-
Caldav server can contains several "collections" which correspond to several
179+
"Collection" is a collective term for addressbooks and calendars. A Cardav or
180+
Caldav server can contains several "collections" which correspond to several
181181
addressbooks or calendar.
182182

183183
Each collection from a storage has a "collection name", a unique identifier for each

vdirsyncer/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
click_log.basic_config("vdirsyncer")
1818

1919
# add short option for the help option
20-
click_context_settings = dict(help_option_names=['-h', '--help'])
20+
click_context_settings = {"help_option_names": ["-h", "--help"]}
2121

2222

2323
class AppContext:

vdirsyncer/storage/filesystem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ def _run_post_hook(self, fpath):
181181
logger.warning(f"Error executing external hook: {str(e)}")
182182

183183
def _run_pre_deletion_hook(self, fpath):
184-
logger.info(f"Calling pre_deletion_hook={self.pre_deletion_hook} with argument={fpath}")
184+
logger.info(
185+
f"Calling pre_deletion_hook={self.pre_deletion_hook} with argument={fpath}"
186+
)
185187
try:
186188
subprocess.call([self.pre_deletion_hook, fpath])
187189
except OSError as e:

0 commit comments

Comments
 (0)