-
Notifications
You must be signed in to change notification settings - Fork 60
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
Format default-python template #2110
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looks like the same problem exists in libs/template/templates/default-python/template/{{.project_name}}/scratch/exploration.ipynb.tmpl, not sure why I haven't caught it, possibly it isn't included by default |
version={{.project_name}}.__version__ + "+" + datetime.datetime.utcnow().strftime("%Y%m%d.%H%M%S"), | ||
version={{.project_name}}.__version__ | ||
+ "+" | ||
+ datetime.datetime.utcnow().strftime("%Y%m%d.%H%M%S"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you increase line width? This should fit in one line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't fit with the default formatting settings, that I believe the majority of developers use. We can extract the version suffix into a separate variable to avoid breaking the line. WDYT?
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
@denik Updated using a new variable, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes
Format code in default-python template, so it's already pre-formatted.
Tests