Skip to content

Commit 3824d81

Browse files
committed
Suppress E402 import violations
1 parent 6d3d8d1 commit 3824d81

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

evaluation/evals.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
# Ensure the parent directory is in the path to import ModelFactory
2222
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
2323

24-
import argparse
25-
import logging
26-
import asyncio
27-
import time
24+
import argparse # noqa: E402
25+
import logging # noqa: E402
26+
import asyncio # noqa: E402
27+
import time # noqa: E402
2828

29-
import pandas as pd
29+
import pandas as pd # noqa: E402
3030

3131
# lighteval depends on `sentencepiece` and it only has prebuilt wheels for Python 3.11 or below
32-
from lighteval.tasks.requests import Doc
33-
from lighteval.metrics.metrics_sample import Extractiveness
32+
from lighteval.tasks.requests import Doc # noqa: E402
33+
from lighteval.metrics.metrics_sample import Extractiveness # noqa: E402
3434

35-
from server.api.services.llm_services import ModelFactory
35+
from server.api.services.llm_services import ModelFactory # noqa: E402
3636

3737
logging.basicConfig(
3838
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"

server/balancer_backend/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
path("api/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
5959
]
6060

61-
import os
62-
from django.conf import settings
63-
from django.http import HttpResponseNotFound
61+
import os # noqa: E402
62+
from django.conf import settings # noqa: E402
63+
from django.http import HttpResponseNotFound # noqa: E402
6464

6565

6666
def spa_fallback(request):

0 commit comments

Comments
 (0)