Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzigr committed Aug 11, 2023
1 parent 32ee65c commit 9229cd4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
33 changes: 16 additions & 17 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import os

import dj_database_url

from contributors.utils import misc

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

from contributors.utils import misc

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Logging setup
Expand Down Expand Up @@ -239,18 +238,18 @@
CRISPY_TEMPLATE_PACK = "bootstrap5"

sentry_sdk.init(
dsn=os.getenv('SENTRY_DSN'),
integrations=[DjangoIntegration()],
# 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,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,
# To set a uniform sample rate
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production,
profiles_sample_rate=1.0,
dsn=os.getenv('SENTRY_DSN'),
integrations=[DjangoIntegration()],
# 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,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,
# To set a uniform sample rate
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production,
profiles_sample_rate=1.0,
)
5 changes: 4 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

from contributors.admin.custom import site


def trigger_error(request):
division_by_zero = 1 / 0
"""Trigger error for Sentry checking."""
division_by_zero = 1 / 0 # noqa: F841, WPS344


urlpatterns = [
path('admin/', site.urls),
Expand Down

0 comments on commit 9229cd4

Please sign in to comment.