diff --git a/gspread/__init__.py b/gspread/__init__.py index 8e52723f..d3152903 100644 --- a/gspread/__init__.py +++ b/gspread/__init__.py @@ -24,3 +24,44 @@ from .http_client import BackOffHTTPClient, HTTPClient from .spreadsheet import Spreadsheet from .worksheet import ValueRange, Worksheet + +from . import urls as urls +from . import utils as utils + +__all__ = [ + # from .auth + "api_key", + "authorize", + "oauth", + "oauth_from_dict", + "service_account", + "service_account_from_dict", + + # from .cell + "Cell", + + # from .client + "Client", + + # from .http_client + "BackOffHTTPClient", + "HTTPClient", + + # from .spreadsheet + "Spreadsheet", + + # from .worksheet + "Worksheet", + "ValueRange", + + # from .exceptions + "GSpreadException", + "IncorrectCellLabel", + "NoValidUrlKeyFound", + "SpreadsheetNotFound", + "WorksheetNotFound", + + # full module imports + "urls", + "utils", +] diff --git a/tox.ini b/tox.ini index 8e235edc..a4495eb8 100644 --- a/tox.ini +++ b/tox.ini @@ -21,14 +21,14 @@ show-source = True statistics = True [isort] -extend_skip=.tox,./env +extend_skip=.tox,./env,./gspread/__init__.py profile=black # Used by the CI to check code format/security [testenv:lint] description = Run code linters deps = -r lint-requirements.txt -commands = black --check --diff --extend-exclude "./env" . +commands = black --check --diff --extend-exclude="./env|gspread/__init__.py" . codespell --skip=".tox,.git,./docs/build,.mypy_cache,./env" . flake8 . isort --check-only . @@ -38,7 +38,7 @@ commands = black --check --diff --extend-exclude "./env" . [testenv:format] description = Format code deps = -r lint-requirements.txt -commands = black --extend-exclude "./env" . +commands = black --extend-exclude="./env|gspread/__init__.py" . isort .