Skip to content
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

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

DaanRosendal
Copy link
Contributor

  • 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

@DaanRosendal DaanRosendal requested a review from Copilot February 19, 2025 15:28

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
Copy link
Contributor

@Timmy1012 Timmy1012 left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

@Timmy1012 Timmy1012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Timmy1012 Timmy1012 merged commit 4a6646c into main Feb 19, 2025
2 checks passed
@Timmy1012 Timmy1012 deleted the minor-changes branch February 19, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants