GeezerVison is showing github.com — Run make all to reformat code automatically (#1215) · stacklok/codegate@ce37fa4
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: src/codegate/pipeline/pii/analyzer.py +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -from typing import Any, List, Optional | | 1 | +from typing import List, Optional | 2 | 2 |
| 3 | 3 | import structlog | 4 | 4 | from presidio_analyzer import AnalyzerEngine | 5 | 5 | from presidio_anonymizer import AnonymizerEngine | 6 | 6 |
| 7 | | -from codegate.db.models import AlertSeverity | 8 | 7 | from codegate.pipeline.base import PipelineContext | 9 | 8 | from codegate.pipeline.sensitive_data.session_store import SessionStore | 10 | 9 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/codegate/pipeline/pii/pii.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | from typing import Any, Dict, List, Optional, Tuple | 2 | | -import uuid | 3 | 2 |
| 4 | 3 | import regex as re | 5 | 4 | import structlog | |
Collapse file Copy file name to clipboardExpand all lines: src/codegate/pipeline/sensitive_data/manager.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import json | 2 | 1 | from typing import Dict, Optional | | 2 | + | 3 | 3 | import pydantic | 4 | 4 | import structlog | | 5 | + | 5 | 6 | from codegate.pipeline.sensitive_data.session_store import SessionStore | 6 | 7 |
| 7 | 8 | logger = structlog.get_logger("codegate") | |
Collapse file Copy file name to clipboardExpand all lines: src/codegate/pipeline/sensitive_data/session_store.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -from typing import Dict, Optional | 2 | 1 | import uuid | | 2 | +from typing import Dict, Optional | 3 | 3 |
| 4 | 4 |
| 5 | 5 | class SessionStore: | |
Collapse file Copy file name to clipboardExpand all lines: tests/pipeline/pii/test_analyzer.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | from unittest.mock import MagicMock, patch | 2 | 2 |
| 3 | 3 | import pytest | 4 | | -from presidio_analyzer import RecognizerResult | 5 | 4 |
| 6 | 5 | from codegate.pipeline.pii.analyzer import PiiAnalyzer | 7 | 6 |
| |
Collapse file Copy file name to clipboardExpand all lines: tests/pipeline/sensitive_data/test_manager.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import json | 2 | 1 | from unittest.mock import MagicMock, patch | | 2 | + | 3 | 3 | import pytest | | 4 | + | 4 | 5 | from codegate.pipeline.sensitive_data.manager import SensitiveData, SensitiveDataManager | 5 | 6 | from codegate.pipeline.sensitive_data.session_store import SessionStore | 6 | 7 |
| |
Collapse file Copy file name to clipboardExpand all lines: tests/pipeline/sensitive_data/test_session_store.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import uuid | 2 | 1 | import pytest | | 2 | + | 3 | 3 | from codegate.pipeline.sensitive_data.session_store import SessionStore | 4 | 4 |
| 5 | 5 |
| |
Collapse file Copy file name to clipboardExpand all lines: tests/test_server.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 |
| 15 | 15 | from codegate import __version__ | 16 | 16 | from codegate.pipeline.factory import PipelineFactory | 17 | | -from codegate.pipeline.sensitive_data.manager import SensitiveDataManager | 18 | 17 | from codegate.providers.registry import ProviderRegistry | 19 | 18 | from codegate.server import init_app | 20 | 19 | from src.codegate.cli import UvicornServer, cli | |
|