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

organise client and core code #112

Merged
merged 2 commits into from
Nov 30, 2024
Merged

Conversation

robberwick
Copy link
Collaborator

This pull request includes significant refactoring to improve the organization of the BlinkStick codebase. The changes primarily involve moving code related to BlinkStick clients into a new clients module and updating import statements accordingly.

Refactoring for better organization:

  • examples/random_color.py: Updated import statements to reflect the new module structure, and changed the method call to blinkstick.core.find_first().
  • src/blinkstick/__init__.py: Moved BlinkStick-related imports to the clients module and updated the import paths for core functions.
  • src/blinkstick/clients/__init__.py: Added imports for BlinkStick, BlinkStickPro, and BlinkStickProMatrix and included them in __all__.
  • src/blinkstick/core.py: Created a new core module with functions to find BlinkStick devices and get the package version.

Test updates to match new structure:

  • Updated import statements in various test files to reflect the new module structure, including test_blinkstick.py, test_blinkstick_matrix.py, test_blinkstick_pro_matrix.py, and conftest.py. [1] [2] [3] [4]

@robberwick robberwick requested a review from Copilot November 30, 2024 20:00

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 12 changed files in this pull request and generated no suggestions.

Files not reviewed (4)
  • examples/random_color.py: Evaluated as low risk
  • tests/conftest.py: Evaluated as low risk
  • tests/clients/test_blinkstick.py: Evaluated as low risk
  • src/blinkstick/init.py: Evaluated as low risk
move the main client classes (BlinkStick, BlinkStickPro, BlinkStickProMatrix) to a clients package

Also, move the core functions (find_first etc) to core module
@robberwick robberwick merged commit d71c3b7 into arvydas:release/2.0-dev Nov 30, 2024
17 checks passed
@robberwick robberwick deleted the clients branch November 30, 2024 20:04
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