diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace4600..f82a69c7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,14 @@ version: 2 updates: + # Each ecosystem batches all its version updates into a single pull request. + # Security updates are not grouped and still open immediately. - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" + interval: "monthly" + cooldown: + default-days: 7 + groups: + monthly-batch: + patterns: + - "*" diff --git a/python/lsst/obs/base/defineVisits.py b/python/lsst/obs/base/defineVisits.py index dc580c85..00eb1a6a 100644 --- a/python/lsst/obs/base/defineVisits.py +++ b/python/lsst/obs/base/defineVisits.py @@ -1476,7 +1476,7 @@ def compute( else: detectorBounds = self.computeExposureBounds(visit.exposures[0], collections=collections) visitBounds = [] - detectorRegions = {} + detectorRegions: dict[int, Region] = {} for detectorId, bounds in detectorBounds.items(): detectorRegions[detectorId] = ConvexPolygon.convexHull(bounds) visitBounds.extend(bounds) diff --git a/python/lsst/obs/base/ingest_tests.py b/python/lsst/obs/base/ingest_tests.py index 602a6d59..fd302197 100644 --- a/python/lsst/obs/base/ingest_tests.py +++ b/python/lsst/obs/base/ingest_tests.py @@ -554,7 +554,9 @@ def testDefineVisits(self) -> None: self.assertEqual(len(detectorVisitDataIds), len(camera)) for dataId in detectorVisitDataIds: assert isinstance(foundVisit.region, lsst.sphgeom.Region) - self.assertTrue(foundVisit.region.contains(dataId.region)) + # Use bare assert for mypy. + assert dataId.region is not None + self.assertTrue(foundVisit.region.contains(dataId.region)) # type: ignore[call-overload] # Check obscore table again. self._check_obscore(butler.registry, has_visits=True)