Skip to content

Commit 67176a8

Browse files
committed
Revert GitHub Workflow changes
1 parent f9e890a commit 67176a8

3 files changed

Lines changed: 13 additions & 18 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "develop" ]
8+
branches: [ "listOfMed" ]
99
pull_request:
10-
branches: [ "develop" ]
10+
branches: [ "listOfMed" ]
1111

1212
permissions:
1313
contents: read
@@ -27,8 +27,3 @@ jobs:
2727
run: pipx install ruff
2828
- name: Lint code with Ruff
2929
run: ruff check --output-format=github --target-version=py39
30-
- name: Install test dependencies
31-
run: pip install -r server/requirements.txt
32-
# Pytest won’t automatically discover config files in subdirectories
33-
- name: Run tests
34-
run: pytest -c server/pytest.ini server/ -v

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 # noqa: E402
25-
import logging # noqa: E402
26-
import asyncio # noqa: E402
27-
import time # noqa: E402
24+
import argparse
25+
import logging
26+
import asyncio
27+
import time
2828

29-
import pandas as pd # noqa: E402
29+
import pandas as pd
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 # noqa: E402
33-
from lighteval.metrics.metrics_sample import Extractiveness # noqa: E402
32+
from lighteval.tasks.requests import Doc
33+
from lighteval.metrics.metrics_sample import Extractiveness
3434

35-
from server.api.services.llm_services import ModelFactory # noqa: E402
35+
from server.api.services.llm_services import ModelFactory
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 # noqa: E402
62-
from django.conf import settings # noqa: E402
63-
from django.http import HttpResponseNotFound # noqa: E402
61+
import os
62+
from django.conf import settings
63+
from django.http import HttpResponseNotFound
6464

6565

6666
def spa_fallback(request):

0 commit comments

Comments
 (0)