Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Bump sentry-sdk from 1.13.0 to 1.14.0 #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ cython_debug/

# django static files
staticfiles/
static/CACHE/
static/CACHE/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: requirements-txt-fixer
- id: requirements-txt-fixer
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ migrate:

migrations:
@echo "Creating migration..."
python manage.py makemigrations
python manage.py makemigrations
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Transaction page:
## TODO: update this file with more details

What's left to do:
Check [TODO.md](TODO.md)
Check [TODO.md](TODO.md)
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
- 3 Failed attempts and block user for 24 hours.
- Throttle OTP generation
- OTP support via third party services
- Support multiple offers with expiry and use the latest offer to give points
- Support multiple offers with expiry and use the latest offer to give points
1 change: 0 additions & 1 deletion accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ class OTPValidationAdmin(admin.ModelAdmin):
list_display = ("destination", "otp", "valid_until", "is_validated")
list_filter = ("is_validated",)
search_fields = ("destination",)

4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rewardme.settings')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rewardme.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand All @@ -18,5 +18,5 @@ def main():
execute_from_command_line(sys.argv)


if __name__ == '__main__':
if __name__ == "__main__":
main()
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Django==4.1.5
django-compressor==4.1
django-environ==0.9.0
django-extensions==3.2.1
django-flags==5.0.12
django-htmx==1.13.0
django-simple-history==3.2.0
django-sms==0.6.0
djangorestframework==3.14.0
pre-commit==2.21.0
pytailwindcss==0.1.4
requests==2.28.1
pre-commit==2.21.0
django-environ==0.9.0
django-flags==5.0.12
sentry-sdk==1.13.0
sentry-sdk==1.14.0
28 changes: 14 additions & 14 deletions rewardme/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/

# Take environment variables from .env file
environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
environ.Env.read_env(os.path.join(BASE_DIR, ".env"))

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = env('SECRET_KEY')
SECRET_KEY = env("SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env('DEBUG')
DEBUG = env("DEBUG")

ALLOWED_HOSTS = env.list('ALLOWED_HOSTS')
CSRF_TRUSTED_ORIGINS = env.list('CSRF_TRUSTED_ORIGINS')
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS")

# Application definition

Expand Down Expand Up @@ -100,7 +100,7 @@

WSGI_APPLICATION = "rewardme.wsgi.application"

if USE_SQLITE := env('USE_SQLITE'):
if USE_SQLITE := env("USE_SQLITE"):
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
Expand All @@ -110,7 +110,7 @@
else:
DATABASES = {
"default": {
'ENGINE': 'django.db.backends.postgresql',
"ENGINE": "django.db.backends.postgresql",
"NAME": env("DB_NAME"),
"USER": env("DB_USER"),
"PASSWORD": env("DB_PASSWORD"),
Expand Down Expand Up @@ -159,9 +159,9 @@
STATIC_ROOT = BASE_DIR / "staticfiles"
COMPRESS_ENABLED = True
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
"compressor.finders.CompressorFinder",
)

# Default primary key field type
Expand All @@ -185,14 +185,14 @@
)

# Sentry
if USE_SENTRY := env.bool('USE_SENTRY', default=False):
if USE_SENTRY := env.bool("USE_SENTRY", default=False):
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

sentry_sdk.init(
dsn=env('SENTRY_DSN'),
dsn=env("SENTRY_DSN"),
integrations=[DjangoIntegration()],
traces_sample_rate=env.float('SENTRY_TRACES_SAMPLE_RATE', default=0.1),
traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE", default=0.1),
send_default_pii=True,
release=env('SENTRY_RELEASE'),
release=env("SENTRY_RELEASE"),
)
2 changes: 1 addition & 1 deletion sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ DB_HOST=
USE_SENTRY=
SENTRY_DSN=
SENTRY_SAMPLE_RATE=
SENTRY_RELEASE
SENTRY_RELEASE
2 changes: 1 addition & 1 deletion static/src/htmx.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/src/output.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ <h1 class="font-extralight text-2xl text-blue-900 mb-8">
Please contact support and I will look into it.
</p>
</div>
{% endblock content %}
{% endblock content %}
2 changes: 1 addition & 1 deletion templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
</script>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ <h1 class="font-bold text-xl mb-2 text-center">Reward Me!</h1>
</div>
</form>
</div>
{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion templates/invalid_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ <h1 class="font-extralight text-2xl text-blue-900 mb-8">
Something went wrong. I'm sorry.
Please contact support and I will look into it.
</p>
</div>
</div>
2 changes: 1 addition & 1 deletion templates/specific_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
{% endif %}
>
{% endif %}
</div>
</div>
2 changes: 1 addition & 1 deletion templates/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ <h1 class="font-extralight text-2xl text-blue-900 mb-8">
Back to Login
</a>
</div>
{% endblock content %}
{% endblock content %}
2 changes: 1 addition & 1 deletion templates/todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
{% endif %}
</td>
</tr>
{% endfor %}
{% endfor %}