Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit ce37fa4

Browse files
authored
Run make all to reformat code automatically (#1215)
I don't know why our lint CI step doesn't catch this (it did slap me the other day for other reasons, so it is working), but running `make all` produced a bunch of reformats.
1 parent fa6853a commit ce37fa4

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

src/codegate/pipeline/pii/analyzer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
from typing import Any, List, Optional
1+
from typing import List, Optional
22

33
import structlog
44
from presidio_analyzer import AnalyzerEngine
55
from presidio_anonymizer import AnonymizerEngine
66

7-
from codegate.db.models import AlertSeverity
87
from codegate.pipeline.base import PipelineContext
98
from codegate.pipeline.sensitive_data.session_store import SessionStore
109

src/codegate/pipeline/pii/pii.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from typing import Any, Dict, List, Optional, Tuple
2-
import uuid
32

43
import regex as re
54
import structlog

src/codegate/pipeline/sensitive_data/manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import json
21
from typing import Dict, Optional
2+
33
import pydantic
44
import structlog
5+
56
from codegate.pipeline.sensitive_data.session_store import SessionStore
67

78
logger = structlog.get_logger("codegate")

src/codegate/pipeline/sensitive_data/session_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from typing import Dict, Optional
21
import uuid
2+
from typing import Dict, Optional
33

44

55
class SessionStore:

tests/pipeline/pii/test_analyzer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from unittest.mock import MagicMock, patch
22

33
import pytest
4-
from presidio_analyzer import RecognizerResult
54

65
from codegate.pipeline.pii.analyzer import PiiAnalyzer
76

tests/pipeline/sensitive_data/test_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import json
21
from unittest.mock import MagicMock, patch
2+
33
import pytest
4+
45
from codegate.pipeline.sensitive_data.manager import SensitiveData, SensitiveDataManager
56
from codegate.pipeline.sensitive_data.session_store import SessionStore
67

tests/pipeline/sensitive_data/test_session_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import uuid
21
import pytest
2+
33
from codegate.pipeline.sensitive_data.session_store import SessionStore
44

55

tests/test_server.py

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

1515
from codegate import __version__
1616
from codegate.pipeline.factory import PipelineFactory
17-
from codegate.pipeline.sensitive_data.manager import SensitiveDataManager
1817
from codegate.providers.registry import ProviderRegistry
1918
from codegate.server import init_app
2019
from src.codegate.cli import UvicornServer, cli

0 commit comments

Comments
 (0)