Skip to content

Commit 9726099

Browse files
author
Muhammad Faraz Maqsood
committed
test: test commit
1 parent aafe79e commit 9726099

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
8181
##### Create release on GitHub
8282
- name: Create or update GitHub release
83-
run: scriv github-release --repo=overhangio/tutor
83+
run: scriv github-release --repo=edly-io/tutor
8484
env:
8585
GITHUB_TOKEN: ${{ github.token }}
8686
# scriv command will fail when not on a tag, such as running with act or a

tutor/plugins/v0.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ def _load_tasks(self) -> None:
156156
Load hooks and check types.
157157
"""
158158
tasks = get_callable_attr(self.obj, "hooks", default={})
159+
print(f"self.obj: {self.obj}")
160+
print(f"tasks: {tasks}")
161+
# Check if tasks is a module and try to access its attributes
162+
import sys
163+
if isinstance(tasks, type(sys)):
164+
# Assuming hooks are defined in a variable named 'hooks' in the module
165+
print("Attributes of the tasks module:")
166+
print(dir(tasks)) # List of attribute names
167+
print(vars(tasks)) # Dictionary of attribute names and values
168+
tasks = getattr(tasks, 'hooks', {})
159169
if not isinstance(tasks, dict):
160170
raise exceptions.TutorError(
161171
f"Invalid hooks in plugin {self.name}. Expected dict, got {tasks.__class__}."

0 commit comments

Comments
 (0)