-
Notifications
You must be signed in to change notification settings - Fork 297
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
Add new bot: cut string from string #1965
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.
Please add documentation in docs/user/bots.rst
Codecov Report
@@ Coverage Diff @@
## develop #1965 +/- ##
===========================================
+ Coverage 75.74% 76.06% +0.31%
===========================================
Files 414 434 +20
Lines 22169 23189 +1020
Branches 2944 3099 +155
===========================================
+ Hits 16793 17639 +846
- Misses 4697 4841 +144
- Partials 679 709 +30
|
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.
If I understand correctly, the bot will remove a prefix or a suffix from a field. So I would call it RemoveAffix. There is also PEP616 which proposes str
methods which do exactly that and which seems to have been accepted for Python 3.9. So once we only support Python 3.9, we can use that (maybe add a comment so that we don't forget).
Please add a reuse compliant license and copyright header to the files, an example can be found in the documentation
Updated |
Please check. |
Thanks, it looks better now from my point of view. There are still a couple of tests that fail, please fix those (apparently the function parameter syntax |
I think the only discussion point left open is this comment/proposal by @schacht-certat:
@mariuskarotkis What do you think of this idea? Does something indicate against it? |
It's good for me. I think it can be renamed. |
Thank you very much - again! - for this useful addition. |
Add new bot: cut string from string