From 501000b5be86a8a6fe2d89af7dbea159aa2f7a92 Mon Sep 17 00:00:00 2001 From: Stanislav Khlud Date: Fri, 1 Dec 2023 12:09:20 +0700 Subject: [PATCH] Add __all__ to __init__.py In VS Code `Pylance` when trying to import non-module names from package raises `reportPrivateImportUsage`. --- CHANGELOG.md | 4 +++ saritasa_invocations/__init__.py | 48 ++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d0f95d..1de3bf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/saritasa_invocations/__init__.py b/saritasa_invocations/__init__.py index ffaa679..e2cf6ec 100644 --- a/saritasa_invocations/__init__.py +++ b/saritasa_invocations/__init__.py @@ -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", +)