diff --git a/aiogoogle/__init__.py b/aiogoogle/__init__.py index 153fcaf..69069b9 100644 --- a/aiogoogle/__init__.py +++ b/aiogoogle/__init__.py @@ -12,11 +12,17 @@ __license__, __copyright__, ) -from .client import Aiogoogle # noqa: F401 imported but unused -from .resource import GoogleAPI # noqa: F401 imported but unused +from .client import Aiogoogle, __all__ as _client_all # noqa: F401 imported but unused +from .resource import GoogleAPI, __all__ as _resource_all # noqa: F401 imported but unused from .excs import ( # noqa: F401 imported but unused AiogoogleError, AuthError, HTTPError, ValidationError, + __all__ as _exception_all ) + + +__all__.extend(_client_all) +__all__.extend(_resource_all) +__all__.extend(_exception_all) diff --git a/aiogoogle/excs.py b/aiogoogle/excs.py index 467406a..57a15d2 100644 --- a/aiogoogle/excs.py +++ b/aiogoogle/excs.py @@ -1,3 +1,6 @@ +__all__ = ["AiogoogleError", "ValidationError", "HTTPError", "AuthError"] + + class AiogoogleError(Exception): pass diff --git a/tests/ALL_APIS.py b/tests/ALL_APIS.py index 6b81bf3..b1fb295 100644 --- a/tests/ALL_APIS.py +++ b/tests/ALL_APIS.py @@ -95,7 +95,6 @@ ('recommender', 'v1'), ('redis', 'v1'), ('reseller', 'v1'), - ('run', 'v1'), ('runtimeconfig', 'v1'), ('safebrowsing', 'v4'), ('script', 'v1'), @@ -127,7 +126,6 @@ ('videointelligence', 'v1'), ('vision', 'v1'), ('webfonts', 'v1'), - ('webmasters', 'v3'), ('websecurityscanner', 'v1'), ('youtube', 'v3'), ('youtubeAnalytics', 'v2'), diff --git a/tox.ini b/tox.ini index da3fbce..7944fa4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py36,py37,py38 +envlist=py36,py37,py38,py39,py310 [testenv] deps =