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
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ coverage:
round: down
range: "70...100"

# Exclude test files from coverage calculations
ignore:
- "tests/**/*"

comment:
layout: "diff, flags, files"
behavior: default
Expand Down
70 changes: 37 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ dev = ["psycopg-binary"]

[tool.poetry.dependencies]
python = ">=3.11,<3.13"
django = ">=4.2.26,<4.3"
django = ">=5.2,<5.3"
djangorestframework = "3.15.*"
drf-spectacular = ">=0.26.5,<0.27"
channels = { version = "4.0.*", extras = ["daphne"] }
drf-spectacular = ">=0.28,<0.30"
channels = { version = "4.3.*", extras = ["daphne"] }
psycopg-binary = { version = "*", optional = true }
django-filter = ">23.2,<24"
django-filter = ">=25.1,<26"
pydantic = ">=1.8.1,<1.11"
cryptography = ">=42,<43"
kubernetes = "26.1.*"
Expand Down
2 changes: 1 addition & 1 deletion src/aap_eda/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/
"""

import logging
Expand Down
2 changes: 1 addition & 1 deletion src/aap_eda/core/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class User(AbstractUser):
This model behaves identically to the default user model,
but you’ll be able to customize it in the future if the need arises.

Refer to https://docs.djangoproject.com/en/4.1/topics/auth/customizing/#substituting-a-custom-user-model
Refer to https://docs.djangoproject.com/en/5.2/topics/auth/customizing/#substituting-a-custom-user-model
""" # noqa: E501

modified_at = models.DateTimeField(auto_now=True, null=False)
Expand Down
10 changes: 7 additions & 3 deletions src/aap_eda/settings/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
ASGI_APPLICATION = "aap_eda.asgi.application"

# Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
Expand All @@ -101,7 +101,7 @@
]

# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/
# https://docs.djangoproject.com/en/5.2/topics/i18n/

LANGUAGE_CODE = "en-us"

Expand All @@ -111,8 +111,12 @@

USE_TZ = True

# URLField default scheme transition (Django 5.0+)
# https://docs.djangoproject.com/en/5.0/releases/5.0/#forms
FORMS_URLFIELD_ASSUME_HTTPS = True

# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

AUTH_USER_MODEL = "core.User"
Expand Down
10 changes: 5 additions & 5 deletions src/aap_eda/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
Django settings.

For more information on this file, see
https://docs.djangoproject.com/en/4.1/topics/settings/
https://docs.djangoproject.com/en/5.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.1/ref/settings/
https://docs.djangoproject.com/en/5.2/ref/settings/

Quick-start development settings - unsuitable for production
See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/


All settings can be overwritten via environment variables or setting files
Expand Down Expand Up @@ -92,7 +92,7 @@

# A list or a comma separated string of allowed origins for CSRF protection
# in the form of [scheme://]host[:port]. Supports wildcards.
# More info: https://docs.djangoproject.com/en/4.2/ref/settings/#csrf-trusted-origins # noqa: E501
# More info: https://docs.djangoproject.com/en/5.2/ref/settings/#csrf-trusted-origins # noqa: E501
CSRF_TRUSTED_ORIGINS: StrToList = []

# Session settings
Expand All @@ -108,7 +108,7 @@
FLAGS: dict = {}

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/
# https://docs.djangoproject.com/en/5.2/howto/static-files/
STATIC_URL: str = "static/"
STATIC_ROOT: str = "/var/lib/eda/static"

Expand Down
2 changes: 1 addition & 1 deletion src/aap_eda/settings/post_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _get_url_end_slash(settings: Dynaconf, name: str) -> str:


# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases


def _get_databases_settings(settings: Dynaconf) -> dict:
Expand Down
2 changes: 1 addition & 1 deletion src/aap_eda/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""URL Configuration.

The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.1/topics/http/urls/
https://docs.djangoproject.com/en/5.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
Expand Down
2 changes: 1 addition & 1 deletion src/aap_eda/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/
https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
"""

import logging
Expand Down
Loading