Skip to content

Commit aae1e37

Browse files
authored
Merge pull request #606 from chetanr25/lint_fix
fix: resolve lint error
2 parents 18c52ce + ed4dbda commit aae1e37

6 files changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Lint
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main,development]
66
pull_request:
7-
branches: [main]
7+
branches: [main,development]
88

99
jobs:
1010
lint:

app/services/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from sqlmodel import Session
44

55
from app.api.schemas.enums import InputStatus, InputType
6-
from app.core.config import AUDIO_CONTENT_TYPES, AUDIO_DIR
6+
from app.core.config import AUDIO_DIR
77
from app.db.repositories import create_input, create_job, update_job
88
from app.models import Input, Job
99
from app.tasks.transcribe import transcribe_audio_task

tests/conftest.py

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

1515
from app.main import app
1616
from app.api.deps import get_db
17-
from app.core.config import API_PREFIX # single source of truth for all tests
1817
from app.models import Template, FormSubmission, Job, Input, Extraction, Incident, Form, Report # noqa: F401 — registers tables
1918

2019
# ---------------------------------------------------------------------------

tests/test_deletion.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
POST /api/v1/forms/purge, and API-key access control.
33
"""
44

5-
import io
65
from datetime import datetime, timedelta, timezone
7-
from pathlib import Path
8-
from unittest.mock import patch
96

107
import pytest
118

@@ -90,7 +87,7 @@ def test_delete_template_deletes_submission_output_pdfs(self, client, db, tmp_pa
9087
out_pdf.write_bytes(b"%PDF-1.4 filled")
9188

9289
tpl_id = _seed_template(client, pdf_path="tpl.pdf")
93-
sub_id = _seed_submission(db, tpl_id, output_pdf_path="filled.pdf")
90+
_seed_submission(db, tpl_id, output_pdf_path="filled.pdf")
9491

9592
client.delete(f"{API_PREFIX}/templates/{tpl_id}")
9693
assert not out_pdf.exists()
@@ -249,7 +246,6 @@ def test_purge_requires_key_when_set(self, client):
249246
assert resp.status_code == 401
250247

251248
def test_purge_with_valid_key(self, client, db):
252-
tpl_id = _seed_template(client)
253249
resp = client.post(
254250
f"{API_PREFIX}/forms/purge?days=30",
255251
headers={"X-API-Key": "secret-test-key"},

tests/test_v1_input.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Whisper involvement — text input is fully synchronous.
55
"""
66

7-
import pytest
87

98
TEXT_URL = "/api/v1/input/text"
109
INPUT_URL = "/api/v1/input"

tests/test_v1_voice.py

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

77
import io
8-
import pytest
98
from pathlib import Path
109
from unittest.mock import MagicMock, patch
1110

0 commit comments

Comments
 (0)