Compare commits

...

3 commits

Author SHA1 Message Date
dependabot[bot]
61ddf67ceb
build(deps): bump the minor-and-patch group across 1 directory with 2 updates (#32)
Some checks are pending
Deploy / deploy (push) Waiting to run
Bumps the minor-and-patch group with 2 updates in the /src/user_sync directory: [boto3](https://github.com/boto/boto3) and [google-auth](https://github.com/googleapis/google-cloud-python).


Updates `boto3` from 1.43.53 to 1.43.57
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.53...1.43.57)

Updates `google-auth` from 2.56.1 to 2.56.2
- [Release notes](https://github.com/googleapis/google-cloud-python/releases)
- [Changelog](https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-documentai/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-python/compare/google-auth-v2.56.1...google-auth-v2.56.2)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.57
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: google-auth
  dependency-version: 2.56.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-28 13:06:22 -04:00
dependabot[bot]
61c358e3d9
build(deps): bump boto3 (#31)
Bumps the minor-and-patch group with 1 update in the /src/sla_monitor directory: [boto3](https://github.com/boto/boto3).


Updates `boto3` from 1.43.53 to 1.43.57
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.53...1.43.57)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.57
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-28 12:57:01 -04:00
Adam Moussa
71c63b7434
fix(lint): resolve ruff 0.16 DTZ007/BLE001 failures blocking CI (#33)
CI installs unpinned latest ruff; 0.16.0 flags two pre-existing lines,
failing ci / ci on every PR (including safe Dependabot bumps #31/#32).

- sla_monitor: parse START_DATE with date.fromisoformat() instead of a
  naive strptime().date() round-trip (identical result, no naive datetime)
- user_sync: keep the deliberate per-user blanket catch (one failed update
  must not abort the sync) with a justified noqa: BLE001
2026-07-28 12:42:06 -04:00
4 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import json
import logging
import os
import time
from datetime import datetime, timedelta, timezone
from datetime import date, datetime, timedelta, timezone
from urllib import error, parse, request
from zoneinfo import ZoneInfo
@ -366,7 +366,7 @@ def handler(event, context):
now_et = now.astimezone(EASTERN)
if start_date:
start = datetime.strptime(start_date, "%Y-%m-%d").date()
start = date.fromisoformat(start_date)
if now_et.date() < start:
logger.info("Before start date %s, skipping", start_date)
return {"skipped": True, "reason": "before_start_date"}

View file

@ -1 +1 @@
boto3==1.43.53
boto3==1.43.57

View file

@ -191,7 +191,7 @@ def handler(event, context):
logger.info("Skipped %s - not a Front teammate", email)
summary["not_in_front"] += 1
except Exception as e:
except Exception as e: # noqa: BLE001 - per-user isolation: one failed update must not abort the sync
logger.error("Error updating %s: %s", email, e)
summary["errors"] += 1
summary["error_details"].append({"email": email, "message": str(e)})

View file

@ -1,3 +1,3 @@
boto3==1.43.53
google-auth==2.56.1
boto3==1.43.57
google-auth==2.56.2
google-api-python-client==2.198.0