-
Notifications
You must be signed in to change notification settings - Fork 0
Remove 67 unused dependencies from requirements files #10
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
Conversation
Co-authored-by: EthanThePhoenix38 <[email protected]>
Co-authored-by: EthanThePhoenix38 <[email protected]>
Co-authored-by: EthanThePhoenix38 <[email protected]>
|
EthanThePhoenix38
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
submitted after corrections of conflits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes 67 unused dependencies from the project's requirements files, reducing the total from 85 to 18 dependencies (6 production + 12 development). The cleanup aims to minimize installation time, disk usage, and maintenance overhead by retaining only actively used packages verified through code analysis.
- Reduced production dependencies from 46 to 6, keeping core scientific computing libraries (numpy, pandas, scipy, matplotlib, statsmodels, scikit-learn)
- Reduced development dependencies from 39 to 12, retaining essential testing, linting, formatting, documentation, and build tools
- Updated Python version requirement from 3.8+ to 3.9+ across all configuration files
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| requirements.txt | Removed 40 unused production dependencies, kept 6 core scientific libraries with updated minimum versions |
| requirements-dev.txt | Removed 27 unused dev dependencies, kept 12 essential development tools (pytest, black, flake8, mypy, sphinx, etc.) |
| pyproject.toml | Synchronized dependencies list with requirements files, added coverage and twine to dev extras |
| py_stats_toolkit.egg-info/requires.txt | Updated generated dependency metadata to match new requirements, bumped minimum versions |
| py_stats_toolkit.egg-info/SOURCES.txt | Added new module files to the package manifest |
| py_stats_toolkit.egg-info/PKG-INFO | Updated package metadata with version 1.0.5, new Python version requirement (3.9+), and synced dependency lists |
| README.md | Removed duplicate Python version badge, removed bandit badge (tool no longer used), cleaned up redundant test/coverage badges |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



The project declared 85 total dependencies but only used 6 in production code. This PR removes unused dependencies to reduce installation time, disk usage, and maintenance burden.
Changes
requirements.txt: Reduced from 46 to 6 dependencies (-87%)
numpy,pandas,scipy,matplotlib,statsmodels,scikit-learnrequirements-dev.txt: Reduced from 39 to 12 dependencies (-69%)
pyproject.toml: Synchronized dependencies with requirements files
README.md: Removed duplicate Python version badges and bandit badge
Verification
Analysis confirmed via
grepof all imports acrosspy_stats_toolkit/andtests/. All 12 existing tests pass with the reduced dependency set.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.