-
Notifications
You must be signed in to change notification settings - Fork 109
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
style: Advertise underscore_separation for function names #265
base: main
Are you sure you want to change the base?
style: Advertise underscore_separation for function names #265
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, @zhaohany! Just a minor suggestion -
Co-authored-by: Saransh Chopra <[email protected]>
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 for picking this up!
Thank you @Saransh-cpp, seems the build failed due to a key, I see similar PR before can skip this steps but I do not have access to trigger the build, would you please help merge this? Thank you. |
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.
Hi, @zhaohany! Please don't worry about the CI. The CI is failing because this PR is from a fork. A minor comment that I missed before -
# %% [markdown] | ||
# This other example uses underscore_separation for all the names. | ||
|
||
# %% | ||
class class_name: | ||
def method_name(a_variable): | ||
m_instance_variable = a_variable | ||
|
||
|
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.
I would keep this as it is (a possible but not a recommended use-case).
This PR updates the naming conventions section to promote the use of
underscore_separation
for function names, in alignment with [PEP 8](https://pep8.org/) guidelines.Fixes issue: [UCL/rsd-engineeringcourse#263](#263)