Skip to content

Improve the way of importing the VERSION constant#719

Open
xsamueljr wants to merge 1 commit intoShopify:mainfrom
xsamueljr:main
Open

Improve the way of importing the VERSION constant#719
xsamueljr wants to merge 1 commit intoShopify:mainfrom
xsamueljr:main

Conversation

@xsamueljr
Copy link

When having a file with one single line declaring a constant (the shopify.version module), loading it by using exec() is a pretty weird method. You should just import the constant instead. This improves code readability and follows best practices for importing modules

Checklist

  • I have updated the CHANGELOG (if applicable)
  • I have followed the Shopify Python guide

@matteodepalo
Copy link
Contributor

Thank you @xsamueljr ! Could you please sign the CLA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants