Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.15.12
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -24,7 +24,7 @@ repos:
language_version: python3

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand All @@ -35,7 +35,7 @@ repos:
- id: detect-secrets

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.20.2
hooks:
- id: mypy
additional_dependencies:
Expand Down
12 changes: 6 additions & 6 deletions tests/test_db_migrate_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ async def test_columns_exist_after_migration(self, fresh_database_url):
""")
column_names = {row["column_name"] for row in columns}

assert (
"last_processed_fingerprint" in column_names
), "Column from migration 20250121010000 should exist"
assert (
"last_processed_updated_at" in column_names
), "Column from migration 20251210000000 should exist"
assert "last_processed_fingerprint" in column_names, (
"Column from migration 20250121010000 should exist"
)
assert "last_processed_updated_at" in column_names, (
"Column from migration 20251210000000 should exist"
)
finally:
await conn.close()
12 changes: 6 additions & 6 deletions tests/test_e2e_race_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,9 +1005,9 @@ async def test_e2e_race_close_after_reopen_ooo(

# Timestamp should still be from reopen (March), not close (February)
final_updated_at = msg_refs_final[0]["last_processed_updated_at"]
assert final_updated_at == datetime.datetime(
2025, 3, 1, 0, 0, 0, tzinfo=datetime.UTC
), f"Timestamp should be from reopen (March), not close. Got {final_updated_at}"
assert final_updated_at == datetime.datetime(2025, 3, 1, 0, 0, 0, tzinfo=datetime.UTC), (
f"Timestamp should be from reopen (March), not close. Got {final_updated_at}"
)

# Close should have returned early (None result indicates early return)
assert result is None, "Close should have been rejected and returned early"
Expand Down Expand Up @@ -1124,6 +1124,6 @@ async def test_e2e_race_update_arrives_before_open_with_older_timestamp(
# Verify timestamp is from the newer event (Open with T1)
final_updated_at = msg_refs[0]["last_processed_updated_at"]
expected_ts = datetime.datetime(2025, 12, 22, 9, 7, 23, tzinfo=datetime.UTC)
assert (
final_updated_at == expected_ts
), f"Timestamp should be from Open event (09:07:23). Got {final_updated_at}"
assert final_updated_at == expected_ts, (
f"Timestamp should be from Open event (09:07:23). Got {final_updated_at}"
)
Loading