Skip to content

Support imports of submodules from top level #75

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

Merged
merged 1 commit into from
Nov 29, 2024
Merged
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
43 changes: 42 additions & 1 deletion src/scwidgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,46 @@
__authors__ = "the scicode-widgets developer team"

from ._css_style import CssStyle, get_css_style
from .check import * # noqa: F403
from .code import * # noqa: F403
from .cue import * # noqa: F403
from .exercise import * # noqa: F403

__all__ = ["CssStyle", "get_css_style"]
__all__ = [ # noqa: F405
# css_style
"CssStyle",
"get_css_style",
# cue
"CueWidget",
"CheckCueBox",
"CueBox",
"SaveCueBox",
"UpdateCueBox",
"ResetCueButton",
"SaveResetCueButton",
"CheckResetCueButton",
"UpdateResetCueButton",
"CueOutput",
"CueObject",
"CueFigure",
# code
"CodeInput",
"ParameterPanel",
# check
"Check",
"CheckResult",
"AssertResult",
"CheckRegistry",
"CheckableWidget",
"assert_equal",
"assert_shape",
"assert_numpy_allclose",
"assert_type",
"assert_numpy_floating_sub_dtype",
"assert_numpy_sub_dtype",
# exercise
"CodeExercise",
"TextExercise",
"ExerciseWidget",
"ExerciseRegistry",
]
22 changes: 22 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from scwidgets import ( # noqa: F401
AssertResult,
Check,
CheckableWidget,
CheckRegistry,
CheckResult,
CodeExercise,
CodeInput,
CueFigure,
CueObject,
CueOutput,
ExerciseRegistry,
ExerciseWidget,
ParameterPanel,
TextExercise,
assert_equal,
assert_numpy_allclose,
assert_numpy_floating_sub_dtype,
assert_numpy_sub_dtype,
assert_shape,
assert_type,
)
Loading