Skip to content

Commit ca42c3a

Browse files
chore: Upgrade Python requirements (#2946)
* chore: Upgrade Python requirements * chore: letting the breaking changes on black reformat [black 26.0.1](https://github.com/psf/black/blob/main/CHANGES.md#2610) contains breaking changes, including enforcing the number of lines after the imports. Rather than reconfiguring black this is a one time reformat to make these files compliant with the out-of-the-box standard. * chore: updating requirements ran make upgrade to deal with the conflict, which incidentally will also bring in the security patch for django * chore: updating isort config Making the configuration for isort match the new configuration for black --------- Co-authored-by: Deborah Kaplan <deborahgu@users.noreply.github.com>
1 parent c09d068 commit ca42c3a

File tree

124 files changed

+358
-395
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+358
-395
lines changed

credentials/apps/api/accreditors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from credentials.apps.credentials.constants import UserCredentialStatus
55
from credentials.apps.credentials.issuers import CourseCertificateIssuer, ProgramCertificateIssuer
66

7-
87
logger = logging.getLogger(__name__)
98

109

credentials/apps/api/authentication.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from credentials.apps.core.constants import Role
1111

12-
1312
logger = logging.getLogger(__name__)
1413

1514

credentials/apps/api/tests/mixins.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from credentials.apps.core.constants import Role
1515
from credentials.apps.core.tests.factories import UserFactory
1616

17-
1817
JWT_AUTH = "JWT_AUTH"
1918

2019

credentials/apps/api/tests/test_accreditors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from credentials.apps.credentials.models import CourseCertificate, ProgramCertificate
1414
from credentials.apps.credentials.tests.factories import CourseCertificateFactory, ProgramCertificateFactory
1515

16-
1716
LOGGER_NAME = "credentials.apps.api.accreditors"
1817

1918

credentials/apps/api/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from django.urls import include, path
99

10-
1110
urlpatterns = [
1211
path("v2/", include(("credentials.apps.api.v2.urls", "v2"), namespace="v2")),
1312
]

credentials/apps/api/v2/decorators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from django.conf import settings
88

9-
109
logger = logging.getLogger(__name__)
1110

1211

credentials/apps/api/v2/serializers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
)
2424
from credentials.apps.records.models import UserGrade
2525

26-
2726
if TYPE_CHECKING:
2827
from credentials.apps.credentials.models import AbstractCertificate
2928

credentials/apps/api/v2/tests/test_views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
from credentials.apps.records.models import UserGrade
3434
from credentials.apps.records.tests.factories import UserGradeFactory
3535

36-
3736
JSON_CONTENT_TYPE = "application/json"
3837
LOGGER_NAME = "credentials.apps.credentials.issuers"
3938
LOGGER_NAME_SERIALIZER = "credentials.apps.api.v2.serializers"

credentials/apps/api/v2/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from credentials.apps.api.v2 import views
55

6-
76
# NOTE: Although this is v2 and other APIs in this application are v1,
87
# the API naming and code layout convention here is not to be used for new
98
# endpoints, per:

credentials/apps/api/v2/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from credentials.apps.credentials.models import CourseCertificate, UserCredential
2323
from credentials.apps.records.models import UserGrade
2424

25-
2625
log = logging.getLogger(__name__)
2726

2827

0 commit comments

Comments
 (0)