Refactor: Codebase restructuring, added unit tests, CI workflow #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant updates to the
acmsgproject, focusing on improving automation, restructuring the codebase, enhancing dependency management, and refining the CLI functionality. Key changes include the addition of a GitHub Actions workflow for testing, restructuring of the source code, and updates to project configuration files.CI/CD and Testing Enhancements:
.github/workflows/test.yaml) to automate testing, type checking, and code coverage reporting for themainbranch. This includes steps for setting up Python, syncing dependencies, running tests withpytest, and uploading coverage reports to Codecov.pytest.iniconfiguration file to standardize test discovery and coverage reporting.Codebase Restructuring:
src/acmsgpackage to modularize functionality, including the addition of__init__.pyfiles for better package management and re-exports of key components. [1] [2]src/acmsg/__main__.py) by delegating command handling to dedicated modules and removing redundant code for improved maintainability.Dependency and Build Management:
pyproject.tomlto include type stubs for dependencies (types-colorama,types-pyyaml,types-requests) and restructured package discovery usingtool.setuptools.packages.find. [1] [2]justfilewith common project tasks such asbuild,test,sync, andbump-versionto streamline development workflows.Asset and File Management:
MANIFEST.into include Python files and moved asset paths fromsrc/acmsg/assetstosrc/acmsg/templates/assets.Documentation and Cleanup:
TODO.mdto reflect the current state of the project.