From bd47f4d3286941846b4b9e985e2543bde786d936 Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Fri, 17 Feb 2023 14:25:47 +0100 Subject: [PATCH 1/2] pytest: Do not recurse in build directory --- pytest.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index e3439eb..7c07895 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,4 @@ [pytest] -norecursedirs = docs .* +norecursedirs = build docs .* asyncio_mode = strict -- GitLab From 9966425093b99806728dc7af8a3eb8a94423b99a Mon Sep 17 00:00:00 2001 From: Antoine Lambert <anlambert@softwareheritage.org> Date: Fri, 17 Feb 2023 14:26:55 +0100 Subject: [PATCH 2/2] mypy: Bump to 1.0.1 and fix new typing errors Related to swh/meta#4960 --- swh/dataset/journalprocessor.py | 6 +++--- tox.ini | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/swh/dataset/journalprocessor.py b/swh/dataset/journalprocessor.py index 420bc7f..df62f01 100644 --- a/swh/dataset/journalprocessor.py +++ b/swh/dataset/journalprocessor.py @@ -48,9 +48,9 @@ class JournalClientOffsetRanges(JournalClient): def __init__( self, *args, - offset_ranges: Mapping[int, Tuple[int, int]] = None, - assignment: Sequence[int] = None, - progress_queue: multiprocessing.Queue = None, + offset_ranges: Mapping[int, Tuple[int, int]], + assignment: Sequence[int], + progress_queue: multiprocessing.Queue, refresh_every: int = 200, **kwargs, ): diff --git a/tox.ini b/tox.ini index b59d8d3..58d87f0 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,7 @@ commands = extras = testing deps = - mypy==0.942 + mypy==1.0.1 commands = mypy swh -- GitLab