Skip to content
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

fix python supported versions and added a check for : in template name #7

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

mayankjobanputra
Copy link
Collaborator

No description provided.

@mayankjobanputra mayankjobanputra requested a review from masci June 3, 2024 15:39
Copy link
Owner

@masci masci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -18,6 +18,8 @@ def __init__(self, user_data_path: Path) -> None:

@staticmethod
def _make_id(name: str, version: str | None):
if ":" in name:
raise InvalidTemplateError("Template name cannot contain ':'")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@@ -31,9 +31,11 @@ def test_init_from_existing_index(populated_index_dir):
r.get("name", "version")


def test__make_id():
def test_make_id():
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahah that's my OCD strictly following the convention test_<func_name> but it's ok 👍

@masci masci merged commit fb8a9dc into main Jun 7, 2024
9 checks passed
@masci masci deleted the tiny_fixes branch June 7, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants