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

8 using external file #9

Merged
merged 4 commits into from
Sep 8, 2024
Merged

8 using external file #9

merged 4 commits into from
Sep 8, 2024

Conversation

elkanamol
Copy link
Owner

feat(sierra_status): enhance code quality, testing, and CI pipeline

  • Refactor code structure and improve error handling
  • Add advanced test cases and improve test coverage
  • Implement Black code formatter and enable linting in CI
  • Update documentation and type hints for better readability
  • Consolidate AT command constants and improve naming consistency

- Move AT command constants to a new conf.py file
- Enhance error handling and input validation in send_at_command function
- Add type hints and improve docstrings for better code readability
- Implement more robust logging with formatted output
- Create advanced test cases for edge cases and error scenarios
- Refactor existing tests to accommodate new changes
- Update default values and file naming patterns for consistency
…odule

- Consolidate redundant test cases for AT commands
- Enhance test coverage for animate_spinner function
- Improve error handling and edge case testing
- Remove commented-out test cases
- Add type hints to mock objects in test functions
- Use context managers for patching in some test cases
- Remove unnecessary empty lines between test classes
- Add Black to the pip install command alongside flake8
- Uncomment and update the linting step to use Black for code style checking
- Replace flake8 linting with Black's --check option

This change enhances the CI pipeline by introducing code formatting checks,
ensuring consistent code style across the project.
@elkanamol elkanamol linked an issue Sep 8, 2024 that may be closed by this pull request
- Apply consistent formatting to setup.py, cli.py, usb_handle.py, and test_usb_handle.py
- Improve code readability by breaking long lines and adjusting indentation
- Remove unnecessary blank lines and add spacing where needed
- Standardize string quotes (use double quotes consistently)
- Adjust import order in some files

This commit improves code consistency and adheres to PEP 8 style guidelines,
making the codebase more maintainable and easier to read.
@elkanamol elkanamol marked this pull request as ready for review September 8, 2024 12:58
Copy link
Owner Author

@elkanamol elkanamol left a comment

Choose a reason for hiding this comment

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

all changes looking good and pass the tests.
Please also check with Linux and Windows OSs to validate that it runs correctly.

@elkanamol elkanamol merged commit 276718e into main Sep 8, 2024
1 check passed
@elkanamol elkanamol self-assigned this Sep 8, 2024
@elkanamol elkanamol added the enhancement New feature or request label Sep 8, 2024
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.

using external file AT command
1 participant