Skip to content

Commit

Permalink
Merge pull request #54 from saritasa-nest/feature/fix-global-import-s…
Browse files Browse the repository at this point in the history
…etup

Add __all__ to __init__.py
  • Loading branch information
TheSuperiorStanislav authored Dec 4, 2023
2 parents 249688a + 0c2b843 commit c133d8f
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ We follow [Semantic Versions](https://semver.org/).

## unreleased

- Add `__all__` to `__init__`.py.
Without it in VS Code, `Pylance` will raise `reportPrivateImportUsage` when trying to import non-module names from package.

## 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 c133d8f

Please sign in to comment.