Skip to content

Commit

Permalink
Update dpkg versions list
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] authored and renovate[bot] committed Jul 9, 2024
1 parent 5473682 commit 5acd366
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Revises:
Create Date: 2016-09-14 09:23:27.466418
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
36 changes: 20 additions & 16 deletions c2cwsgiutils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,22 +217,26 @@ def check_access(
return check_access_config(
request,
{
"github_repository": env_or_settings(
settings,
GITHUB_REPOSITORY_ENV,
GITHUB_REPOSITORY_PROP,
"",
)
if repo is None
else repo,
"github_access_type": env_or_settings(
settings,
GITHUB_ACCESS_TYPE_ENV,
GITHUB_ACCESS_TYPE_PROP,
"pull",
)
if access_type is None
else access_type,
"github_repository": (
env_or_settings(
settings,
GITHUB_REPOSITORY_ENV,
GITHUB_REPOSITORY_PROP,
"",
)
if repo is None
else repo
),
"github_access_type": (
env_or_settings(
settings,
GITHUB_ACCESS_TYPE_ENV,
GITHUB_ACCESS_TYPE_PROP,
"pull",
)
if access_type is None
else access_type
),
},
)

Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/broadcast/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Broadcast messages to all the processes of Gunicorn in every containers."""

import functools
import logging
import warnings
Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/config_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Private utilities."""

import os
from typing import Any, Callable, Mapping, Optional, cast

Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SQLalchemy models."""

import logging
import re
import warnings
Expand Down
3 changes: 2 additions & 1 deletion c2cwsgiutils/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Install exception views to have nice JSON error pages."""

import logging
import os
import traceback
Expand All @@ -20,7 +21,7 @@
LOG = logging.getLogger(__name__)
STATUS_LOGGER = {
401: LOG.debug,
500: LOG.error
500: LOG.error,
# The rest are warnings
}

Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
To use it, create an instance of this class in your application initialization and do a few calls to its
methods add_db_check()
"""

import configparser
import copy
import logging
Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/pyramid_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
A pyramid event handler is installed to setup this filter for the current request.
"""

import json
import logging
import logging.config
Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/request_tracking/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Adds a c2c_request_id attribute to the Pyramid Request class to access it.
"""

import logging
import urllib.parse
import uuid
Expand Down
1 change: 0 additions & 1 deletion c2cwsgiutils/setup_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Must be imported at the very beginning of the process's life, before any other module is imported.
"""


import argparse
import warnings
from typing import Any, Callable, Dict, Optional, TypedDict, cast
Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/sql_profiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
That runs an "EXPLAIN ANALYZE" on every SELECT query going through SQLAlchemy.
"""

import logging
import warnings

Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/sql_profiler/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
That runs an "EXPLAIN ANALYZE" on every SELECT query going through SQLAlchemy.
"""

import logging
import re
from threading import Lock
Expand Down
2 changes: 1 addition & 1 deletion c2cwsgiutils/sqlalchemylogger/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _write_logs(self, logs: List[Any]) -> None:
try:
self.session.bulk_save_objects(logs)
self.session.commit()
except (SQLAlchemyError):
except SQLAlchemyError:
try:
self.create_db()
self.session.rollback()
Expand Down
1 change: 1 addition & 0 deletions c2cwsgiutils/stats_pyramid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generate statsd metrics for pyramid and SQLAlchemy events."""

import warnings

import pyramid.config
Expand Down

0 comments on commit 5acd366

Please sign in to comment.