Skip to content

Commit

Permalink
Cleanup and config in prep for renovate
Browse files Browse the repository at this point in the history
- add codeowners
- remove requirements.txt
- update all dependencies to current in pyproject.toml
- fix dumb import in auth view
  • Loading branch information
Tjeri committed Jan 4, 2024
1 parent c22f307 commit eb73823
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 51 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @lewellien @Tjeri
48 changes: 22 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,36 @@ classifiers = [
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]

dependencies = [
'Django==4.0.9',
'django-bootstrap5==22.2',
'django-ical==1.8.3',
'django-phonenumber-field[phonenumberslite]==6.3.0',
'django-stubs==1.12.0',
'icalendar==4.1.0',
'types-python-dateutil==2.8.19',
'gunicorn==20.1.0',
'holidays==0.14.2',
'Pillow==9.4.0',
'psycopg2-binary==2.9.3',
'pylint==2.14.5',
'Authlib==1.3.0',
'Django==4.2.9',
'django-auth-ldap==4.6.0',
'django-bootstrap5==23.4',
'django-colorfield==0.11.0',
'django-ical==1.9.2',
'django-phonenumber-field[phonenumberslite]==7.3.0',
'gunicorn==21.2.0',
'holidays==0.40',
'icalendar==5.0.11',
'Pillow==10.2.0',
'psycopg2-binary==2.9.9',
'python-dateutil==2.8.2',
'Authlib==1.0.1',
'django-auth-ldap==4.1.0',
'requests==2.28.1',
'types-requests==2.28.3',
'pytz==2022.1',
'django-colorfield==0.8.0',
'mkdocs==1.4.2',
'mkdocs-material==9.0.11'
'requests==2.31.0'
]

[project.optional-dependencies]
tests = [
'types-requests==2.28.3',
'types-click==7.1.2',
'types-Flask==1.1.6',
'types-PyYAML==6.0.4',
'mypy==0.991',
'pylint==2.14.5',
'django-stubs==4.2.7',
'types-python-dateutil==2.8.19.14',
'types-requests==2.31.0.10',
'mypy==1.8.0'
]
docs = [
'mkdocs==1.4.2',
'mkdocs-material==9.0.11'
]

[project.urls]
Expand Down
23 changes: 0 additions & 23 deletions requirements.txt

This file was deleted.

3 changes: 1 addition & 2 deletions src/shiftings/accounts/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

from authlib.integrations.base_client import OAuthError
from authlib.integrations.django_client import OAuth
from authlib.oauth2 import HttpRequest
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import login as login_user, logout, REDIRECT_FIELD_NAME
from django.contrib.auth.models import AbstractUser, Group
from django.contrib.auth.views import LoginView, LogoutView, UserModel
from django.http import HttpResponse, HttpResponseRedirect
from django.http import HttpRequest, HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.utils.decorators import method_decorator
from django.utils.translation import gettext_lazy as _
Expand Down

0 comments on commit eb73823

Please sign in to comment.