Skip to content

Commit fd59b2b

Browse files
authored
Merge pull request #86 from octue/fix-maxsize-bytes
Fix signature mismatch bug due to max size bytes header
2 parents c322454 + a04387c commit fd59b2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+949
-882
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM windpioneers/gdal-python:little-gecko-gdal-2.4.1-python-3.9-dev
1+
FROM windpioneers/gdal-python:rational-swordtail-gdal-3.10.0-python-3.13-dev
22

33
# Bust any pre-existing apt cache
44
# Solves: https://askubuntu.com/questions/1388000/failed-to-fetch-deb-debian-org-debian-pool-main-l-linux-linux-libc-dev-5-10-70-1

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ repos:
2020
- id: check-json5
2121

2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.6.9
23+
rev: v0.11.0
2424
hooks:
2525
- id: ruff
26+
name: Ruff lint
2627
args: [--fix, --exit-non-zero-on-fix]
28+
29+
- id: ruff
30+
name: Ruff isort
31+
args: [check, --select, I, --fix]
32+
2733
- id: ruff-format
34+
name: Ruff format
2835

2936
- repo: https://github.com/windpioneers/pre-commit-hooks
3037
rev: 0.0.5

django_gcp/events/signals.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from django.dispatch import Signal
22

3-
43
event_received = Signal()

django_gcp/events/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import base64
2+
from datetime import timezone
23
import json
34
import logging
4-
from datetime import timezone
5+
56
from dateutil.parser import isoparse
67
from django.conf import settings
78
from django.urls import reverse
89
from django.utils.http import urlencode
9-
from django_gcp.exceptions import InvalidPubSubMessageError
1010

11+
from django_gcp.exceptions import InvalidPubSubMessageError
1112

1213
logger = logging.getLogger(__name__)
1314

django_gcp/events/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import logging
3+
34
from django.conf import settings
45
from django.http import HttpResponse
56
from django.utils.decorators import method_decorator
@@ -8,7 +9,6 @@
89

910
from .signals import event_received
1011

11-
1212
logger = logging.getLogger(__name__)
1313

1414

django_gcp/logs/error_reporting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# pylint: disable=broad-except
33

44
from logging import StreamHandler
5+
56
from django.conf import settings
67
from google.cloud import error_reporting
78

django_gcp/logs/structured_logs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
23
from google.cloud.logging_v2.handlers import StructuredLogHandler
34

45

django_gcp/management/commands/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import abc
2+
23
from django.apps import apps
34
from django.core.management.base import BaseCommand as DjangoBaseCommand
45

django_gcp/management/commands/cleanup_tmp_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from datetime import datetime, timedelta
2+
23
from django.core.management.base import BaseCommand
4+
35
from django_gcp.storage import GoogleCloudStorage
46

57

django_gcp/metadata/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from .metadata import ENDPOINTS, CloudRunMetadata
22

3-
43
__all__ = ["ENDPOINTS", "CloudRunMetadata"]

0 commit comments

Comments
 (0)