Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 19, 2023
1 parent 77ab0ed commit 4c9e2ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev100"
version = "0.0.0.dev101"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
Empty file.
7 changes: 4 additions & 3 deletions src/repodynamics/actions/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,20 +1262,21 @@ def init(
logger=None
):
for arg_name, arg in (("meta_sync", meta_sync), ("hooks", hooks)):
if arg not in ['report', 'amend', 'commit', 'pull', 'none']:
if arg not in ['report', 'amend', 'commit', 'pull', 'none', '']:
raise ValueError(
f"Invalid input argument for '{arg_name}': "
f"Expected one of 'report', 'amend', 'commit', 'pull', or 'none', but got '{arg}'."
)

return Init(
context=context,
admin_token=admin_token,
package_build=package_build,
package_lint=package_lint,
package_test=package_test,
website_build=website_build,
meta_sync=meta_sync,
hooks=hooks,
meta_sync=meta_sync or 'none',
hooks=hooks or 'none',
website_announcement=website_announcement,
website_announcement_msg=website_announcement_msg,
logger=logger,
Expand Down

0 comments on commit 4c9e2ef

Please sign in to comment.