Skip to content

Remove transitive dependencies and update requirements#1302

Open
foivospro wants to merge 2 commits into
voxpupuli:masterfrom
foivospro:master
Open

Remove transitive dependencies and update requirements#1302
foivospro wants to merge 2 commits into
voxpupuli:masterfrom
foivospro:master

Conversation

@foivospro
Copy link
Copy Markdown

As part of our ongoing research on Python dependency management, we noticed that your project explicitly declares several dependencies that are actually transitive — meaning they are already required by top-level packages and do not need to be listed directly.

Dependencies such as click, itsdangerous, certifi, charset-normalizer, idna, urllib3, zipp, typing_extensions, and pyparsing are not used directly in the project code but are installed automatically through primary packages like Flask and requests.

Keeping these transitive dependencies in requirements.txt or pyproject.toml unnecessarily locks their versions and increases the maintenance burden, especially during upgrades or conflict resolution. This pull request removes those redundant declarations to allow the resolver to handle them based on the needs of top-level packages. This leads to a cleaner, more maintainable dependency tree.

The pip documentation also encourages auditing your top-level requirements and removing unused or transitive ones to simplify the dependency graph and minimize the risk of version conflicts.

Importantly, after removing these transitive dependencies, we confirmed that the project’s test suite still passes successfully. This indicates that none of the removed dependencies are used directly by the codebase.

@foivospro foivospro changed the title Remove unused dependencies and update requirements Remove transitive dependencies and update requirements Jul 17, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.92%. Comparing base (6b6e8df) to head (fcb4473).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1302   +/-   ##
=======================================
  Coverage   76.92%   76.92%           
=======================================
  Files          20       20           
  Lines        1309     1309           
=======================================
  Hits         1007     1007           
  Misses        302      302           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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