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

Refactoring complete #8

Merged
merged 12 commits into from
Dec 21, 2024
Merged

Refactoring complete #8

merged 12 commits into from
Dec 21, 2024

Conversation

NikitosKey
Copy link
Owner

This pull request includes various improvements and refactoring for the bot application, focusing on code quality, documentation, and database operations. The most important changes include the addition of a GitHub Actions workflow for code quality checks, updates to the README.md file, and significant refactoring of database-related modules.

Improvements to Code Quality and Documentation:

Refactoring and Enhancements to Database Modules:

  • bot/database/database.py: Refactored the Database class to improve code readability and added comprehensive docstrings. Introduced a new fix_path method to handle database path creation.
  • bot/database/order.py, bot/database/product.py, bot/database/user.py: Converted the Order, Product, and User classes to use the dataclass decorator and added detailed docstrings. [1] [2] [3]

General Code Improvements:

  • bot/__main__.py: Added a module-level docstring and made minor improvements to the code for better readability. [1] [2]
  • bot/database/__init__.py: Added a module-level docstring and updated the __all__ list to use double quotes for consistency.
  • generated by Copilot

@NikitosKey NikitosKey merged commit 7edb9fd into main Dec 21, 2024
2 checks passed
@NikitosKey NikitosKey deleted the ref-text-locale branch December 21, 2024 15:49
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.

1 participant