-
Notifications
You must be signed in to change notification settings - Fork 0
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
make chatbot.py lower case and add project configuration files #38
Conversation
DaanRosendal
commented
Feb 19, 2025
- Renamed Chatbot.py to chatbot.py
- Added .pylintrc for linting configuration
- Updated Dockerfile to use lowercase chatbot.py
- Minor improvements to login, profile, and utils pages
- Refined GitHub workflow configuration
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.
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
pages/utils/init.py:9
- Caching a database connection using @st.cache_resource may lead to stale connections or shared state issues across sessions. Consider re-evaluating whether caching is appropriate for a stateful resource like a DB connection or instantiate a new connection as needed.
@st.cache_resource
- Created chatbot.py with OpenAIChatbot class using Streamlit and Azure APIs - Added .pylintrc for linting configuration - Updated Dockerfile to use lowercase chatbot.py - Minor improvements to login, profile, and utils pages - Refined GitHub workflow configuration
76278e2
to
cf165a3
Compare
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.
And please update the static analysis workflow to use the pylintrc config
chatbot.py
Outdated
@@ -1,6 +1,6 @@ | |||
""" | |||
Chatbot application for University of Amsterdam students using OpenAI and Azure Search. | |||
""" | |||
""" # noqa: E501 |
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.
Why not add E501
to the global pylint ignore?
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's flake8, but good point anyway. Done
- Added .flake8 configuration file to ignore line length warnings - Removed `# noqa: E501` comments from chatbot.py, login.py, profile.py, and utils/__init__.py - Simplified docstrings and comments by removing line length annotations
- Modified .pylintrc to disable specific linting warnings - Simplified static analysis workflow by removing explicit pylint configuration
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.
LGTM