Skip to content

Commit

Permalink
Add __all__ to __init__.py
Browse files Browse the repository at this point in the history
In VS Code `Pylance` when trying to import non-module names from
package raises `reportPrivateImportUsage`.
  • Loading branch information
TheSuperiorStanislav committed Dec 1, 2023
1 parent 6a1b0e2 commit 501000b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ We follow [Semantic Versions](https://semver.org/).

## unreleased

- Add `__all__` to `__init__`.py.
In VS Code `Pylance` when trying to import non-module names from
package raises `reportPrivateImportUsage`.

## 0.10.0

- Add configuration for django `manage.py` file path
Expand Down
48 changes: 48 additions & 0 deletions saritasa_invocations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,51 @@
print_success,
print_warn,
)

__all__ = (
# invocations
"alembic",
"celery",
"cruft",
"db",
"db_k8s",
"django",
"docker",
"fastapi",
"git",
"github_actions",
"k8s",
"mypy",
"open_api",
"pip",
"poetry",
"pre_commit",
"pytest",
"python",
"secrets",
"system",
# Configs
"AlembicSettings",
"CelerySettings",
"Config",
"CruftSettings",
"DBSettings",
"DjangoSettings",
"DockerSettings",
"FastAPISettings",
"GitHubActionsSettings",
"GitSettings",
"K8SDBSettings",
"K8SDefaultSettings",
"K8SSettings",
"PIPSettings",
"PreCommitSettings",
"PythonSettings",
"SystemSettings",
# printing
"context_override",
"print_error",
"print_panel",
"print_success",
"print_warn",
)

0 comments on commit 501000b

Please sign in to comment.