Skip to content

fix: Resolve CI failures and finalize linting - #15

Merged
MarkSant merged 2 commits into
mainfrom
feature/repo-audit-improvements
Aug 16, 2025
Merged

fix: Resolve CI failures and finalize linting#15
MarkSant merged 2 commits into
mainfrom
feature/repo-audit-improvements

Conversation

@google-labs-jules

Copy link
Copy Markdown

This submission corrects two issues that caused the CI pipeline to fail on the previous commit. It also includes the completion of all linting fixes.

  • CI Workflow Fix: The .github/workflows/ci.yml file has been corrected. The --no-root flag was removed from the poetry install commands, which ensures the project's own package is installed correctly. This resolves the ModuleNotFoundError that was causing the test job to fail.
  • Linting Fixes: All remaining E501 (Line too long) and other ruff linting errors have been resolved across the entire codebase. The code now passes all linting checks.

With these changes, the CI pipeline should now pass, and the codebase is clean, fully tested, and meets all the requirements of the initial audit.

This commit introduces a wide range of improvements based on the findings of a repository audit. The changes address key areas including testing, continuous integration, documentation, logging, performance, and extensibility.

Key changes include:

- **CI/CD:** Added a GitHub Actions workflow for automated linting and testing.
- **Documentation:** Overhauled the README with setup instructions, usage guidance, and an architecture diagram.
- **Structured Logging:** Refactored the entire codebase to use `structlog` for structured, JSON-formatted logging, replacing previous `logging` and `print` calls.
- **Performance:** Enabled Automatic Mixed Precision (AMP) for YOLOv8 inference on CUDA devices to accelerate performance.
- **Extensibility:** Implemented a plugin-based architecture for the object detector. The YOLOv8 and OpenVINO backends have been refactored into separate plugins, making the system more modular and extensible.
- **Code Quality:** Added a comprehensive `.gitignore` file and fixed a large number of linting errors reported by `ruff`. The test suite was also updated to support the new architecture and is fully passing.
This commit addresses the CI failures from the previous submission by fixing the workflow and completing all linting corrections.

The `ModuleNotFoundError` in the test job was resolved by removing the `--no-root` flag from the `poetry install` step in the `ci.yml` workflow. This ensures the `zebtrack` package is properly installed in the CI environment.

Additionally, all remaining linting errors, primarily line-length issues (E501), have been fixed across the codebase. The project now passes all `ruff` checks.
@MarkSant
MarkSant merged commit 091ca74 into main Aug 16, 2025
2 checks passed
@MarkSant
MarkSant deleted the feature/repo-audit-improvements branch August 16, 2025 03: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