Content-Length: 425834 | pFad | http://github.com/stacklok/codegate/pull/1215/commits/2dca704d5038710ec0d60463612fd741a3047ac5

CA Run make all to reformat code automatically by jhrozek · Pull Request #1215 · stacklok/codegate · GitHub
Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Run make all to reformat code automatically #1215

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Run make all to reformat code automatically
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.
  • Loading branch information
jhrozek committed Mar 4, 2025
commit 2dca704d5038710ec0d60463612fd741a3047ac5
3 changes: 1 addition & 2 deletions src/codegate/pipeline/pii/analyzer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from typing import Any, List, Optional
from typing import List, Optional

import structlog
from presidio_analyzer import AnalyzerEngine
from presidio_anonymizer import AnonymizerEngine

from codegate.db.models import AlertSeverity
from codegate.pipeline.base import PipelineContext
from codegate.pipeline.sensitive_data.session_store import SessionStore

Expand Down
1 change: 0 additions & 1 deletion src/codegate/pipeline/pii/pii.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Any, Dict, List, Optional, Tuple
import uuid

import regex as re
import structlog
Expand Down
3 changes: 2 additions & 1 deletion src/codegate/pipeline/sensitive_data/manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import json
from typing import Dict, Optional

import pydantic
import structlog

from codegate.pipeline.sensitive_data.session_store import SessionStore

logger = structlog.get_logger("codegate")
Expand Down
2 changes: 1 addition & 1 deletion src/codegate/pipeline/sensitive_data/session_store.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Dict, Optional
import uuid
from typing import Dict, Optional


class SessionStore:
Expand Down
1 change: 0 additions & 1 deletion tests/pipeline/pii/test_analyzer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from unittest.mock import MagicMock, patch

import pytest
from presidio_analyzer import RecognizerResult

from codegate.pipeline.pii.analyzer import PiiAnalyzer

Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/sensitive_data/test_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
from unittest.mock import MagicMock, patch

import pytest

from codegate.pipeline.sensitive_data.manager import SensitiveData, SensitiveDataManager
from codegate.pipeline.sensitive_data.session_store import SessionStore

Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/sensitive_data/test_session_store.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import uuid
import pytest

from codegate.pipeline.sensitive_data.session_store import SessionStore


Expand Down
1 change: 0 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from codegate import __version__
from codegate.pipeline.factory import PipelineFactory
from codegate.pipeline.sensitive_data.manager import SensitiveDataManager
from codegate.providers.registry import ProviderRegistry
from codegate.server import init_app
from src.codegate.cli import UvicornServer, cli
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/stacklok/codegate/pull/1215/commits/2dca704d5038710ec0d60463612fd741a3047ac5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy