Skip to content

Conversation

@mirpedrol
Copy link
Member

Add linting of the topics section in the meta.yml file and the funcitonality to fix them.

@mirpedrol mirpedrol requested a review from mashehu November 14, 2025 15:15
topic_val = re.split(r',(?=(?:[^\'"]*[\'"][^\'"]*[\'"])*[^\'"]*$)', topic_val)[
0
] # Takes only first part, avoid commas in quotes
topic_val = topic_val.strip().strip("'").strip('"') # remove quotes and whitespaces
Copy link
Contributor

Choose a reason for hiding this comment

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

could not malforme the removal of quotes the eval statement?

Copy link
Member Author

Choose a reason for hiding this comment

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

I copied this piece of code from the outputs section, I think it will break the statement in some cases, but I am not sure what is best. What's your opinion?

Copy link
Contributor

Choose a reason for hiding this comment

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

i would just strip() the whitespace.

Copy link
Contributor

@mashehu mashehu left a comment

Choose a reason for hiding this comment

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

do we need more specific tests for this?

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.

3 participants