Skip to content

Commit 42c5dba

Browse files
committed
Pre-commit autoupdate
1 parent 7991419 commit 42c5dba

File tree

9 files changed

+22
-10
lines changed

9 files changed

+22
-10
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: trailing-whitespace
66
args: [--markdown-linebreak-ext=md]
@@ -9,11 +9,11 @@ repos:
99
- id: check-added-large-files
1010
- id: debug-statements
1111
- repo: https://github.com/psf/black
12-
rev: "23.9.1"
12+
rev: "24.1.1"
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: "v1.5.1"
16+
rev: "v1.8.0"
1717
hooks:
1818
- id: mypy
1919
files: vdirsyncer/.*
@@ -23,7 +23,7 @@ repos:
2323
- types-requests
2424
- types-atomicwrites
2525
- repo: https://github.com/charliermarsh/ruff-pre-commit
26-
rev: 'v0.0.291'
26+
rev: 'v0.1.15'
2727
hooks:
2828
- id: ruff
2929
args: [--fix, --exit-non-zero-on-fix]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Please refer to https://vdirsyncer.pimutils.org/en/stable/packaging.html for
55
how to package vdirsyncer.
66
"""
7+
78
from __future__ import annotations
89

910
from setuptools import Command

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Test suite for vdirsyncer.
33
"""
4+
45
from __future__ import annotations
56

67
import hypothesis.strategies as st

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
General-purpose fixtures for vdirsyncer's testsuite.
33
"""
4+
45
from __future__ import annotations
56

67
import logging

vdirsyncer/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Vdirsyncer synchronizes calendars and contacts.
33
"""
4+
45
from __future__ import annotations
56

67
PROJECT_HOME = "https://github.com/pimutils/vdirsyncer"

vdirsyncer/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Contains exception classes used by vdirsyncer. Not all exceptions are here,
33
only the most commonly used ones.
44
"""
5+
56
from __future__ import annotations
67

78

vdirsyncer/storage/base.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def __init__(cls, name, bases, d):
3434

3535

3636
class Storage(metaclass=StorageMeta):
37-
3837
"""Superclass of all storages, interface that all storages have to
3938
implement.
4039
@@ -67,8 +66,8 @@ class Storage(metaclass=StorageMeta):
6766
# The machine-readable name of this collection.
6867
collection = None
6968

70-
#A value of False means storage does not support delete requests. A
71-
#value of True mean the storage supports it.
69+
# A value of False means storage does not support delete requests. A
70+
# value of True mean the storage supports it.
7271
no_delete = False
7372

7473
# A value of True means the storage does not support write-methods such as
@@ -79,7 +78,13 @@ class Storage(metaclass=StorageMeta):
7978
# The attribute values to show in the representation of the storage.
8079
_repr_attributes: list[str] = []
8180

82-
def __init__(self, instance_name=None, read_only=None, no_delete=None, collection=None):
81+
def __init__(
82+
self,
83+
instance_name=None,
84+
read_only=None,
85+
no_delete=None,
86+
collection=None,
87+
):
8388
if read_only is None:
8489
read_only = self.read_only
8590
if self.read_only and not read_only:

vdirsyncer/sync/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Some modifications to it are explained in
1010
https://unterwaditzer.net/2016/sync-algorithm.html
1111
"""
12+
1213
from __future__ import annotations
1314

1415
import contextlib
@@ -244,7 +245,9 @@ def __init__(self, ident, dest):
244245
async def _run_impl(self, a, b):
245246
meta = self.dest.status.get_new(self.ident)
246247
if self.dest.storage.read_only or self.dest.storage.no_delete:
247-
sync_logger.debug(f"Skipping deletion of item {self.ident} from {self.dest.storage}")
248+
sync_logger.debug(
249+
f"Skipping deletion of item {self.ident} from {self.dest.storage}"
250+
)
248251
else:
249252
sync_logger.info(f"Deleting item {self.ident} from {self.dest.storage}")
250253
await self.dest.storage.delete(meta.href, meta.etag)

vdirsyncer/vobject.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737

3838
class Item:
39-
4039
"""Immutable wrapper class for VCALENDAR (VEVENT, VTODO) and
4140
VCARD"""
4241

0 commit comments

Comments
 (0)