Skip to content

Commit cc128db

Browse files
committed
Revert "lint errors"
This reverts commit a862760.
1 parent a862760 commit cc128db

4 files changed

Lines changed: 9 additions & 28 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

frontend/src/pages/Feedback/FeedbackForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,6 @@ function FeedbackForm({id}: FormProps) {
470470
</section>
471471
</>
472472
);
473-
}
473+
};
474474

475475
export default FeedbackForm;

frontend/src/services/parsing/ParseWithSource.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ParseStringWithLinks: React.FC<ParseStringWithLinksProps> = ({
2121

2222
const processedText = text.split(regex).map((part, index) => {
2323
if (index % 2 === 1) {
24-
const guidMatch = part.match(/([a-f0-9-]{36})/);
24+
const guidMatch = part.match(/([a-f0-9\-]{36})/);
2525
const pageNumberMatch = part.match(/Page\s*(?:Number:)?\s*(\d+)/i);
2626
const chunkNumberMatch = part.match(/Chunk\s*(\d+)/i);
2727

server/balancer_backend/urls.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import os
2-
import importlib
3-
4-
from django.conf import settings
51
from django.contrib import admin # Import Django's admin interface module
6-
from django.http import HttpResponseNotFound
2+
73
# Import functions for URL routing and including other URL configs
84
from django.urls import path, include, re_path
5+
96
# Import TemplateView for rendering templates
107
from django.views.generic import TemplateView
8+
import importlib # Import the importlib module for dynamic module importing
119

1210
# Define a list of URL patterns for the application
1311
# Keep admin outside /api/ prefix
@@ -53,6 +51,10 @@
5351
path("api/", include(api_urlpatterns)),
5452
]
5553

54+
import os
55+
from django.conf import settings
56+
from django.http import HttpResponseNotFound
57+
5658

5759
def spa_fallback(request):
5860
"""Serve index.html for SPA routing when build is present; otherwise 404."""

0 commit comments

Comments
 (0)