Skip to content

Commit

Permalink
move to api folder
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed May 22, 2024
1 parent 01409e5 commit d739b2f
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion hooks/gen_docs/gen_docs_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import yaml

from hooks import ROOT
from kpops.cli.registry import _find_classes
from kpops.api.registry import _find_classes
from kpops.components import KafkaConnector, PipelineComponent
from kpops.utils.colorify import redify, yellowify
from kpops.utils.pydantic import issubclass_patched
Expand Down
6 changes: 3 additions & 3 deletions kpops/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from typing import TYPE_CHECKING

import kpops
from kpops.cli.custom_formatter import CustomFormatter
from kpops.cli.options import FilterType
from kpops.cli.registry import Registry
from kpops.api.custom_formatter import CustomFormatter
from kpops.api.options import FilterType
from kpops.api.registry import Registry
from kpops.component_handlers import ComponentHandlers
from kpops.component_handlers.kafka_connect.kafka_connect_handler import (
KafkaConnectHandler,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion kpops/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import kpops
from kpops import __version__
from kpops.cli.options import FilterType
from kpops.api.options import FilterType
from kpops.cli.utils import collect_pipeline_paths
from kpops.config import ENV_PREFIX, KpopsConfig
from kpops.utils.gen_schema import (
Expand Down
2 changes: 1 addition & 1 deletion kpops/component_handlers/schema_handler/schema_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from schema_registry.client.schema import AvroSchema

from kpops.api.exception import ClassNotFoundError
from kpops.cli.registry import find_class
from kpops.api.registry import find_class
from kpops.component_handlers.schema_handler.schema_provider import (
Schema,
SchemaProvider,
Expand Down
2 changes: 1 addition & 1 deletion kpops/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)

from kpops.api.exception import ParsingException, ValidationError
from kpops.cli.registry import Registry
from kpops.api.registry import Registry
from kpops.component_handlers import ComponentHandlers
from kpops.components.base_components.pipeline_component import PipelineComponent
from kpops.utils.dict_ops import update_nested_pair
Expand Down
2 changes: 1 addition & 1 deletion kpops/utils/gen_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ModelFieldsSchema,
)

from kpops.cli.registry import _find_classes
from kpops.api.registry import _find_classes
from kpops.components import (
PipelineComponent,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from kpops.cli.registry import ClassNotFoundError, Registry, _find_classes, find_class
from kpops.api.registry import ClassNotFoundError, Registry, _find_classes, find_class
from kpops.component_handlers.schema_handler.schema_provider import SchemaProvider
from kpops.components.base_components.pipeline_component import PipelineComponent
from tests.cli.resources.custom_module import CustomSchemaProvider
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_schema_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from pydantic import ConfigDict, Field
from typer.testing import CliRunner

from kpops.api.registry import Registry
from kpops.cli.main import app
from kpops.cli.registry import Registry
from kpops.components import PipelineComponent
from kpops.utils.docstring import describe_attr

Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from polyfactory.factories.pydantic_factory import ModelFactory

from kpops.cli.options import FilterType
from kpops.api.options import FilterType
from kpops.component_handlers import (
ComponentHandlers,
)
Expand Down

0 comments on commit d739b2f

Please sign in to comment.