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

Split out misc functions #74

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Split out misc functions #74

merged 1 commit into from
Aug 22, 2023

Conversation

justinh-rahb
Copy link
Collaborator

Summary

Refactored main application by extracting miscellaneous utility functions into a new module utils/misc.py.

Description

To streamline the main application and improve its structure, miscellaneous utility functions, specifically generate_unique_card_id and get_docs, have been moved from the main application to a dedicated utility module, misc.py, under the utils directory. This extraction ensures a cleaner main application and groups utility functions for better organization.

Related Issue(s)

#47

Motivation and Context

The refactoring was necessary to:

  • Enhance code readability and maintainability.
  • Ensure a modular structure where utility functions are logically grouped.
  • Simplify the main application logic by abstracting out utility functions.

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • New feature (non-breaking change which adds functionality)

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.

@justinh-rahb justinh-rahb added the enhancement New feature or request label Aug 22, 2023
@justinh-rahb justinh-rahb self-assigned this Aug 22, 2023
@justinh-rahb justinh-rahb linked an issue Aug 22, 2023 that may be closed by this pull request
@justinh-rahb justinh-rahb merged commit 37bebca into master Aug 22, 2023
@justinh-rahb justinh-rahb deleted the misc-modules branch August 22, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor] Modularize main.py
1 participant