Skip to content

Commit

Permalink
build: update requirements, django 5.1, bump version to 0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Aug 10, 2024
1 parent 2273c01 commit 4a80797
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
epos:
repos:
# https://github.com/pre-commit/pre-commit-hooks#pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
Expand All @@ -9,10 +9,10 @@ epos:
- id: check-added-large-files

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1 # Ruff version
rev: v0.5.5 # Ruff version
hooks:
# Run the linter
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --select, I]
args: [--fix, --exit-non-zero-on-fix, --extend-select, I]
# Run the formatter
- id: ruff-format
6 changes: 3 additions & 3 deletions pyproject.toml
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",
Expand Down Expand Up @@ -38,4 +38,4 @@ dev = [

[tool.ruff]
line-length = 100
lint = { select = ["I"] }
lint = { extend-select = ["I"], ignore = ["F401"] }
8 changes: 4 additions & 4 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ click==8.1.7
# via uvicorn
colorlog==6.8.2
# via vj-api
django==5.0.7
django==5.1
# via django-cors-headers
# via django-ninja
# via vj-api
Expand All @@ -38,7 +38,7 @@ h11==0.14.0
# via uvicorn
idna==3.7
# via requests
orjson==3.10.6
orjson==3.10.7
# via vj-api
packaging==24.1
# via gunicorn
Expand All @@ -52,7 +52,7 @@ pydantic-core==2.20.1
# via pydantic
requests==2.32.3
# via vj-api
sentry-sdk==2.10.0
sentry-sdk==2.12.0
# via vj-api
sqlparse==0.5.1
# via django
Expand All @@ -63,5 +63,5 @@ typing-extensions==4.12.2
urllib3==2.2.2
# via requests
# via sentry-sdk
uvicorn==0.30.3
uvicorn==0.30.5
# via vj-api
8 changes: 4 additions & 4 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ click==8.1.7
# via uvicorn
colorlog==6.8.2
# via vj-api
django==5.0.7
django==5.1
# via django-cors-headers
# via django-ninja
# via vj-api
Expand All @@ -38,7 +38,7 @@ h11==0.14.0
# via uvicorn
idna==3.7
# via requests
orjson==3.10.6
orjson==3.10.7
# via vj-api
packaging==24.1
# via gunicorn
Expand All @@ -52,7 +52,7 @@ pydantic-core==2.20.1
# via pydantic
requests==2.32.3
# via vj-api
sentry-sdk==2.10.0
sentry-sdk==2.12.0
# via vj-api
sqlparse==0.5.1
# via django
Expand All @@ -63,5 +63,5 @@ typing-extensions==4.12.2
urllib3==2.2.2
# via requests
# via sentry-sdk
uvicorn==0.30.3
uvicorn==0.30.5
# via vj-api
12 changes: 4 additions & 8 deletions vj_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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,
},
)

0 comments on commit 4a80797

Please sign in to comment.