fix: make gender input case-insensitive and clean up pre-commit config#4855
Conversation
|
can not pass CI. output looks like
|
|
I'm not sure what could be causing that. Maybe run: |
There was a problem hiding this comment.
Kindly also add a new file changes/unreleased/4855.8hCFRFMeMaRWpBEYaxrTMq.toml with the following content:
other= "Make Gender Input Case-Insensitive in ``conversationbot.py``"
[[pull_requests]]
uid = "4855"
author_uid = "fengxiaohu"
closes_threads = ["4846"]|
Thank you very much for the contribution! |
Summary
This PR improves the gender input handling in
examples/conversationbot.pyby using a case-insensitive regex.It also corrects a pre-commit hook configuration issue in
.pre-commit-config.yaml(invalidstagesfield inisort).Changes
(?i)regex..pre-commit-config.yamlto fixisorthook crash due to invalid stages.ruff,black,flake8,isort, andmypy.Check-list
pre-commit run -a).. versionchanged:: NEXT.VERSIONto example function (optional)AUTHORS.rst(optional)