Skip to content

Commit

Permalink
DX Minor Cleanup (#1041)
Browse files Browse the repository at this point in the history
* bump extensions
-django-anymail
-django-extensions

* remove django-fsm-log

* dependabot limit

* disable dependabot labels

* delete pre-commit

* bump django-debug-toolbar

* remove Pillow

* remove comments

* remove runtime.txt (use DO defaults for security purposes)

* requirements
- bump all code_quality
- remove types-requests
  • Loading branch information
crypto-rizzo authored Feb 19, 2024
1 parent 2655da5 commit cd3163a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 38 deletions.
5 changes: 2 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Basic set up for three package managers
version: 2
updates:
# Python / Django Backend
- package-ecosystem: "pip"
directory: "/backend"
schedule:
interval: "weekly"
day: "saturday"
open-pull-requests-limit: 10
labels: [ ]
20 changes: 0 additions & 20 deletions .pre-commit-config.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions backend/apps/root/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from django.contrib import admin, messages
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from django_fsm_log.admin import StateLogInline
from apps.root.models import (
CheckoutItem,
CheckoutSession,
Expand Down Expand Up @@ -119,7 +118,6 @@ def transition_to_live(modeladmin, request, queryset):
"user",
"team"
]
inlines = [StateLogInline]
readonly_fields = ["state"]
actions = [transition_to_draft, transition_to_live] # type: ignore

Expand Down
11 changes: 5 additions & 6 deletions backend/config/requirements/_code_quality.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Code quality
# ------------------------------------------------------------------------------
black==23.3.0 # https://github.com/psf/black
django-stubs[compatible-mypy]==1.11.0 # https://github.com/typeddjango/django-stubs
pylint-django==2.5.3 # https://github.com/PyCQA/pylint-django
mypy==0.950 # https://github.com/python/mypy
ruff==0.0.270 # https://github.com/charliermarsh/ruff
types-requests
black==24.2.0 # https://github.com/psf/black
django-stubs[compatible-mypy]==4.2.7 # https://github.com/typeddjango/django-stubs
pylint-django==2.5.5 # https://github.com/PyCQA/pylint-django
mypy==1.7.1 # https://github.com/python/mypy
ruff==0.2.2 # https://github.com/charliermarsh/ruff
2 changes: 0 additions & 2 deletions backend/config/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ boto3==1.28.73 # https://github.com/boto/boto3
eth-account==0.9.0 # https://github.com/ethereum/eth-account
eth-utils==2.2.1 # https://github.com/ethereum/eth-utils
google-api-python-client==2.99.0 # https://github.com/googleapis/google-api-python-client
Pillow==10.0.1 # https://github.com/python-pillow/Pillow
qrcode==7.4.2 # https://github.com/lincolnloop/python-qrcode
rollbar==1.0.0 #https://github.com/rollbar/pyrollbar/
stripe==5.5.0 #https://github.com/stripe/stripe-python/
Expand All @@ -22,7 +21,6 @@ django-allauth==0.61.1 # https://github.com/pennersr/django-allauth
django-crispy-forms==2.1 # https://github.com/django-crispy-forms/django-crispy-forms/stargazers
django-environ==0.11.2 # https://github.com/joke2k/django-environ
django-fsm==2.8.1 # https://github.com/viewflow/django-fsm
django-fsm-log==3.1.0 # https://github.com/jazzband/django-fsm-log
django-model-utils==4.4.0 # https://github.com/jazzband/django-model-utils
django-storages[boto3]==1.14.2 # https://github.com/jschneier/django-storages
django-money==3.3.0 # https://github.com/django-money/django-money
Expand Down
2 changes: 1 addition & 1 deletion backend/config/requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ psycopg==3.1.9 # https://github.com/psycopg/psycopg

# Django
# ------------------------------------------------------------------------------
django-debug-toolbar==4.0.0 # https://github.com/jazzband/django-debug-toolbar
django-debug-toolbar==4.3.0 # https://github.com/jazzband/django-debug-toolbar
django-extensions==3.2.3 # https://github.com/django-extensions/django-extensions
2 changes: 1 addition & 1 deletion backend/config/requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ psycopg==3.1.18 # https://github.com/psycopg/psycopg

# Django
# ------------------------------------------------------------------------------
django-anymail[mailgun]==10.1 # https://github.com/anymail/django-anymail
django-anymail[mailgun]==10.2 # https://github.com/anymail/django-anymail
2 changes: 1 addition & 1 deletion backend/config/requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ psycopg2-binary==2.9.6 # https://github.com/psycopg/psycopg2

# Django
# ------------------------------------------------------------------------------
django-extensions==3.2.0 # https://github.com/django-extensions/django-extensions
django-extensions==3.2.3 # https://github.com/django-extensions/django-extensions
1 change: 0 additions & 1 deletion backend/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"allauth.socialaccount",
"crispy_forms",
"crispy_bootstrap5",
"django_fsm_log",
"django_quill",
"djmoney",
"storages",
Expand Down
1 change: 0 additions & 1 deletion backend/runtime.txt

This file was deleted.

0 comments on commit cd3163a

Please sign in to comment.