-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update requirements, django 5.1, bump version to 0.3.7
- Loading branch information
1 parent
2273c01
commit 4a80797
Showing
5 changed files
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[project] | ||
name = "vj-api" | ||
version = "0.3.6" | ||
version = "0.3.7" | ||
description = "Provides a random YouTube video ID according to an optional given theme, and store cached YouTube IDs in a DB for later usage without depleting the YouTube API quota." | ||
authors = [{ name = "Adrien Carpentier", email = "[email protected]" }] | ||
dependencies = [ | ||
"colorlog>=6.7.0", | ||
"django>=4.2.4", | ||
"django>=5.1", | ||
"django-ninja>=0.22.2", | ||
"django-cors-headers>=4.2.0", | ||
"gunicorn>=21.2.0", | ||
|
@@ -38,4 +38,4 @@ dev = [ | |
|
||
[tool.ruff] | ||
line-length = 100 | ||
lint = { select = ["I"] } | ||
lint = { extend-select = ["I"], ignore = ["F401"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,8 +131,9 @@ | |
logger.addHandler(handler) | ||
|
||
# Local settings | ||
ENVIRONMENT = "unknown" | ||
try: | ||
from .local_settings import * | ||
from .local_settings import * # noqa | ||
except Exception as e: | ||
logger.error(e) | ||
logger.error("Note: local_settings.py not present or invalid. Using default settings.") | ||
|
@@ -147,20 +148,15 @@ | |
if ENVIRONMENT != "local": | ||
sentry_sdk.init( | ||
dsn="https://[email protected]/4503999686508544", | ||
integrations=[ | ||
DjangoIntegration(), | ||
], | ||
integrations=[DjangoIntegration()], | ||
release=f"{APP_NAME}@{VERSION}", | ||
environment=ENVIRONMENT, | ||
# Set traces_sample_rate to 1.0 to capture 100% | ||
# of transactions for performance monitoring. | ||
# Sentry recommend adjusting this value in production. | ||
traces_sample_rate=1.0, | ||
profiles_sample_rate=1.0, | ||
# If you wish to associate users to errors (assuming you are using | ||
# django.contrib.auth) you may enable sending PII data. | ||
send_default_pii=True, | ||
# Experimental profiling | ||
_experiments={ | ||
"profiles_sample_rate": 1.0, | ||
}, | ||
) |