Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marteinn committed Sep 26, 2023
1 parent 8227d17 commit 78352aa
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions Company-Project/src/pipit/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@
dsn=SENTRY_DSN,
release=APP_VERSION,
environment=SENTRY_ENVIRONMENT,
integrations=[
DjangoIntegration()
],
integrations=[DjangoIntegration()],
traces_sample_rate=0.1,
)

Expand Down
4 changes: 1 addition & 3 deletions Company-Project/src/pipit/settings/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@
release=APP_VERSION,
environment=SENTRY_ENVIRONMENT,
debug=True,
integrations=[
DjangoIntegration()
],
integrations=[DjangoIntegration()],
traces_sample_rate=1.0,
)

Expand Down
2 changes: 2 additions & 0 deletions Company-Project/src/pipit/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@

urlpatterns += [path("wt/__debug__/", include(debug_toolbar.urls))]


def trigger_error(request):
division_by_zero = 1 / 0


urlpatterns += [
path("wt/sentry-debug/", trigger_error),
path(settings.ADMIN_URL, admin.site.urls),
Expand Down
4 changes: 3 additions & 1 deletion {{cookiecutter.project_name}}/src/pipit/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

# Email notification url
WAGTAILADMIN_BASE_URL = "https://{{cookiecutter.domain_prod}}.test:{{cookiecutter.docker_web_port}}"
WAGTAILADMIN_BASE_URL = (
"https://{{cookiecutter.domain_prod}}.test:{{cookiecutter.docker_web_port}}"
)

# Allow weak local passwords
AUTH_PASSWORD_VALIDATORS = []
Expand Down
4 changes: 1 addition & 3 deletions {{cookiecutter.project_name}}/src/pipit/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@
dsn=SENTRY_DSN,
release=APP_VERSION,
environment=SENTRY_ENVIRONMENT,
integrations=[
DjangoIntegration()
],
integrations=[DjangoIntegration()],
traces_sample_rate=0.1,
)

Expand Down
4 changes: 1 addition & 3 deletions {{cookiecutter.project_name}}/src/pipit/settings/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@
release=APP_VERSION,
environment=SENTRY_ENVIRONMENT,
debug=True,
integrations=[
DjangoIntegration()
],
integrations=[DjangoIntegration()],
traces_sample_rate=1.0,
)

Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_name}}/src/pipit/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@

urlpatterns += [path("wt/__debug__/", include(debug_toolbar.urls))]


def trigger_error(request):
division_by_zero = 1 / 0


urlpatterns += [
path("wt/sentry-debug/", trigger_error),
path(settings.ADMIN_URL, admin.site.urls),
Expand Down

0 comments on commit 78352aa

Please sign in to comment.