Skip to content

Commit 711ecce

Browse files
author
Hugo
authored
Merge pull request #972 from pimutils/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents dc6e4ba + 5d58a86 commit 711ecce

File tree

4 files changed

+24
-30
lines changed

4 files changed

+24
-30
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: flake8
1515
additional_dependencies: [flake8-import-order, flake8-bugbear]
1616
- repo: https://github.com/psf/black
17-
rev: "21.12b0"
17+
rev: "22.1.0"
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/pycqa/isort
@@ -23,12 +23,12 @@ repos:
2323
- id: isort
2424
name: isort (python)
2525
- repo: https://github.com/asottile/pyupgrade
26-
rev: v2.31.0
26+
rev: v2.31.1
2727
hooks:
2828
- id: pyupgrade
2929
args: [--py37-plus]
3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: "v0.931"
31+
rev: "v0.941"
3232
hooks:
3333
- id: mypy
3434
files: vdirsyncer/.*

tests/system/cli/test_sync.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,16 +353,13 @@ def test_ident_conflict(tmpdir, runner):
353353
'error: foobar: Storage "foo" contains multiple items with the '
354354
"same UID or even content"
355355
) in result.output
356-
assert (
357-
sorted(
358-
[
359-
"one.txt" in result.output,
360-
"two.txt" in result.output,
361-
"three.txt" in result.output,
362-
]
363-
)
364-
== [False, True, True]
365-
)
356+
assert sorted(
357+
[
358+
"one.txt" in result.output,
359+
"two.txt" in result.output,
360+
"three.txt" in result.output,
361+
]
362+
) == [False, True, True]
366363

367364

368365
@pytest.mark.parametrize(

tests/unit/cli/test_discover.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,15 @@ async def get_discovered_b():
155155
async def handle_not_found(config, collection):
156156
return missing
157157

158-
assert (
159-
sorted(
160-
await aiostream.stream.list(
161-
expand_collections(
162-
shortcuts,
163-
config_a,
164-
config_b,
165-
get_discovered_a,
166-
get_discovered_b,
167-
handle_not_found,
168-
)
158+
assert sorted(
159+
await aiostream.stream.list(
160+
expand_collections(
161+
shortcuts,
162+
config_a,
163+
config_b,
164+
get_discovered_a,
165+
get_discovered_b,
166+
handle_not_found,
169167
)
170168
)
171-
== sorted(expected)
172-
)
169+
) == sorted(expected)

vdirsyncer/cli/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def sync(ctx, collections, force_delete):
126126
from .tasks import prepare_pair
127127
from .tasks import sync_collection
128128

129-
async def main(collections):
129+
async def main(collection_names):
130130
async with aiohttp.TCPConnector(limit_per_host=16) as conn:
131131
tasks = []
132-
for pair_name, collections in collections:
132+
for pair_name, collections in collection_names:
133133
async for collection, config in prepare_pair(
134134
pair_name=pair_name,
135135
collections=collections,
@@ -163,10 +163,10 @@ def metasync(ctx, collections):
163163
from .tasks import metasync_collection
164164
from .tasks import prepare_pair
165165

166-
async def main(collections):
166+
async def main(collection_names):
167167
async with aiohttp.TCPConnector(limit_per_host=16) as conn:
168168

169-
for pair_name, collections in collections:
169+
for pair_name, collections in collection_names:
170170
collections = prepare_pair(
171171
pair_name=pair_name,
172172
collections=collections,

0 commit comments

Comments
 (0)