Skip to content

Commit 16f1f8a

Browse files
committed
fix: remove backend/GUI remnants and fix mypy config
1 parent 574348e commit 16f1f8a

File tree

6 files changed

+4
-77
lines changed

6 files changed

+4
-77
lines changed

.dockerignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ config.yml
103103
!config.example.yml
104104

105105
# Docker
106-
Dockerfile.backend
107-
Dockerfile.frontend
108-
docker-compose.yml
109106
.dockerignore
110107

111108
# Tree mapper output

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ jobs:
117117
--cov-report=term-missing \
118118
--cov-branch \
119119
--junitxml=test-results.xml
120-
env:
121-
SKIP_DB_INIT: "true"
122120
123121
- name: Enforce coverage threshold
124122
if: runner.os == 'Linux' && matrix.python-version == '3.12'
@@ -160,8 +158,6 @@ jobs:
160158
run: |
161159
mutmut run . || true
162160
mutmut results || true
163-
env:
164-
SKIP_DB_INIT: "true"
165161
166162
complexity-checks:
167163
name: Complexity Analysis

.github/workflows/security.yml

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -62,50 +62,3 @@ jobs:
6262
p/javascript
6363
p/typescript
6464
p/security-audit
65-
66-
# ============================================================================
67-
# Trivy Container Scanning
68-
# ============================================================================
69-
trivy:
70-
name: Trivy Container Scan
71-
runs-on: ubuntu-latest
72-
73-
steps:
74-
- name: Checkout code
75-
uses: actions/checkout@v6
76-
77-
- name: Set up Docker Buildx
78-
uses: docker/setup-buildx-action@v3
79-
80-
- name: Build image for scanning
81-
uses: docker/build-push-action@v6
82-
with:
83-
context: .
84-
file: Dockerfile.backend
85-
platforms: linux/amd64
86-
push: false
87-
load: true
88-
tags: arbitrium-backend:scan
89-
cache-from: type=gha,scope=backend
90-
cache-to: type=gha,mode=max,scope=backend
91-
92-
- name: Run Trivy vulnerability scanner
93-
uses: aquasecurity/[email protected]
94-
with:
95-
image-ref: 'arbitrium-backend:scan'
96-
format: 'table'
97-
severity: 'CRITICAL,HIGH,MEDIUM'
98-
99-
- name: Run Trivy (JSON output)
100-
uses: aquasecurity/[email protected]
101-
with:
102-
image-ref: 'arbitrium-backend:scan'
103-
format: 'json'
104-
output: 'trivy-results.json'
105-
severity: 'CRITICAL,HIGH,MEDIUM'
106-
107-
- name: Upload Trivy results
108-
uses: actions/upload-artifact@v6
109-
with:
110-
name: trivy-results
111-
path: trivy-results.json

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ known-first-party = ["arbitrium"]
215215
strict = true
216216
warn_unreachable = true
217217
warn_redundant_casts = true
218-
warn_unused_ignores = true
218+
warn_unused_ignores = false
219219
disallow_any_generics = true
220220
disallow_untyped_defs = true
221221
disallow_incomplete_defs = true

src/arbitrium/logging/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ def _configure_litellm() -> None:
401401
import litellm
402402

403403
# Configure LiteLLM suppression globally using the comprehensive approach
404-
litellm.suppress_debug_info = True
405-
litellm.drop_params = True
406-
litellm.set_verbose = False
404+
litellm.suppress_debug_info = True # type: ignore[attr-defined]
405+
litellm.drop_params = True # type: ignore[attr-defined]
406+
litellm.set_verbose = False # type: ignore[attr-defined]
407407

408408
# Suppress LiteLLM's own logger
409409
litellm_logger = logging.getLogger("LiteLLM")

tests/integration/conftest.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
"""Integration test fixtures and utilities."""
22

3-
import os
4-
5-
os.environ.setdefault(
6-
"ARBITRIUM_JWT_SECRET",
7-
"test_secret_at_least_32_characters_long_for_testing",
8-
)
9-
os.environ.setdefault("SKIP_DB_INIT", "true")
10-
os.environ.setdefault("ARBITRIUM_SKIP_AUTH", "true")
11-
123
import asyncio
134
import re
145
import tempfile
@@ -24,16 +15,6 @@
2415
from arbitrium.models.registry import ProviderRegistry
2516

2617

27-
def pytest_configure(config):
28-
"""Configure pytest with required environment variables before any imports."""
29-
os.environ.setdefault(
30-
"ARBITRIUM_JWT_SECRET",
31-
"test_secret_at_least_32_characters_long_for_testing",
32-
)
33-
os.environ.setdefault("SKIP_DB_INIT", "true")
34-
os.environ.setdefault("ARBITRIUM_SKIP_AUTH", "true")
35-
36-
3718
def pytest_addoption(parser):
3819
parser.addoption(
3920
"--run-real-llm",

0 commit comments

Comments
 (0)