Coverage for repo_ctx/providers/__init__.py: 100%

1"""Provider abstraction for multi-source repository indexing."""

2 from .base import GitProvider, ProviderProject, ProviderFile

3 from .exceptions import (

4 ProviderError,

5 ProviderNotFoundError,

6 ProviderAuthError,

7 ProviderFileNotFoundError,

8 ProviderRateLimitError,

9 ProviderConfigError

10)

11 from .factory import ProviderFactory

12 from .detector import ProviderDetector

13 from .gitlab import GitLabProvider

14 from .github import GitHubProvider

15 from .local import LocalGitProvider

16

17 __all__ = [

18 "GitProvider",

19 "ProviderProject",

20 "ProviderFile",

21 "ProviderError",

22 "ProviderNotFoundError",

23 "ProviderAuthError",

24 "ProviderFileNotFoundError",

25 "ProviderRateLimitError",

26 "ProviderConfigError",

27 "ProviderFactory",

28 "ProviderDetector",

29 "GitLabProvider",

30 "GitHubProvider",

31 "LocalGitProvider",

32]

33

34# Register providers

35 ProviderFactory.register("gitlab", GitLabProvider)

36 ProviderFactory.register("github", GitHubProvider)

37 ProviderFactory.register("local", LocalGitProvider)