Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicitly list exported package symbols #1531

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
41 changes: 41 additions & 0 deletions gspread/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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 .


Expand Down
Loading