chore(repo): Add smoke tests, create inventory, and organize notebooks#7
Merged
ravishan16 merged 2 commits intomainfrom Oct 4, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
=======================================
Coverage 22.87% 22.87%
=======================================
Files 24 24
Lines 1893 1893
Branches 330 330
=======================================
Hits 433 433
Misses 1415 1415
Partials 45 45
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: ravishan16 <4581463+ravishan16@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] chore(repo): inventory unused files + add app smoke test
chore(repo): Add smoke tests, create inventory, and organize notebooks
Oct 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
This PR implements repository maintenance tasks to improve code quality and CI reliability:
Changes
1. Smoke Test Suite (
tests/test_smoke_app.py)Added 5 smoke tests that validate core application imports work correctly without network calls or full Streamlit rendering:
These tests use proper mocking (including a custom
SessionStateMockclass) to handle Streamlit's session state without requiring the full Streamlit runtime. All tests pass:$ pytest -k smoke -v # 5 passed, 55 deselected in ~6 seconds ✅2. GitHub Actions CI Integration
Updated
.github/workflows/ci.ymlto run smoke tests before unit tests, ensuring app import validation in CI:3. Repository Inventory (
REPO_INVENTORY.md)Created comprehensive inventory documenting:
.replit,pyproject.toml/setup.cfg)ARCHITECTURE.mdandARCHITECTURE_V2.md4. Notebook Organization
Moved experimental notebook to dedicated archive:
notebooks/experiments/directorynotebooks/pipeline_csv_to_parquet multifile.ipynb→notebooks/experiments/5. Cleanup Helper Script (
scripts/report_unused.sh)Added executable bash script for ongoing code quality analysis:
vulturefor unused code detection (optional, with--installflag)_oldfiles,TODOmarkers)REPO_INVENTORY.md$ bash scripts/report_unused.sh # Provides comprehensive code quality reportTesting
All existing tests continue to pass:
Impact
Rollback
All changes are easily reversible:
git revertrestores previous stateResolves the repository maintenance tasks outlined in the issue. Ready for review and merge! 🚀
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.