-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Improved Quality of Python Snippets, fixed issue with CONTRIBUTING.md #193
Conversation
Renamed from `truncate-string.py` to `truncate.py` Replaced "..." with ellipses("…") to only use one character Implemented toggle for the `suffix` "…" on string with default of `True`
Added type hints
…tter functional representation Renamed `convert-string-to-ascii.md` to `convert-string-to-unicode.md` Replaced ASCII with Unicode Kept `ascii` tag as it is a subset of unicode and to minimize search errors Fixed issue dostonnabotov#192
Added a `not` on line 68 in "Does that snippet have a real, and practical use case ?" to prevent useless snippets from being acceptable and useful snippets from being denied.
recovered old attribution in the python snippet`truncate` to axorax and added the contributors tag.
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.
Hey, thanks for your contribution ! 🙌 However there are a few issues that need to be addressed to align with the repository's standards
-
PEP 8 Compliance
Please ensure your code follows the PEP 8 standard by using 4 spaces for indentation instead of tabs. This is important for consistency and readability across the repository. -
Horizontal Ellipsis (…) in truncate Function
You used a horizontal ellipsis (…) instead of the standard "..." in your truncate function. Please stick to "..." for consistency and to avoid potential issues with encoding or readability.
Please make these changes so we could accept your snippets.
removed Tab
Replaced "…" with "..." Updated Description to match
Ready for merge to parent repo
Conformed to PEP 8 |
followed change request
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.
Hey, thanks for the contribution, I notice that a lot of checks of checkSnippetFormatting.js
are not passing. Please ensure it runs, and snippets have no issue before opening a pull request
2nd integration
Description
Made Changes to Python snippets
truncate-string
totruncate
remove-specific-characters
toremove-characters
convert-string-to-ascii
toconvert-string-to-unicode
truncate
suffix
"…" on string with default ofTrue
intruncate
convert-string-to-unicode
ascii
tag as it is a subset of unicode and to minimize search errors inconvert-string-to-unicode
Made Changes to
CONTRIBUTING.md
not
on line 68 in "Does that snippet have a real, and practical use case ?" to prevent useless snippets from being acceptable and useful snippets from being denied.Type of Change
Improved Clarity on the acceptance criteria
Checklist
Related Issues
#192
Closes #
#192
Additional Context
Added type-hints to python snippets, fixed a semantic error in
CONTRIBUTING.md
, added functionality to opt out of the ellipsis intruncate.py
, changedconvert-string-to-ascii
to better reflect function.