{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A flake8 plugin that validates whether imported packages are declared as project dependencies and reports missing or unused requirements.","skillfed_tags":["flake8-plugin","dependency-validation","code-quality"],"use_cases":["Catch missing dependency declarations in CI/CD before publishing a package to PyPI.","Validate that all imports in a codebase are covered by declared requirements during code review.","Map custom or private package names to their module names so the checker recognizes them correctly.","Scan installed packages in the host environment to validate requirements against what's actually available.","Enforce dependency hygiene in monorepos or projects with complex, multi-level requirements files."],"what_it_does":"flake8-requirements is a flake8 plugin that checks whether the packages you import in your code are actually declared as dependencies in your project's configuration. It reports I900 warnings when you use a package that isn't listed in your requirements, helping catch missing dependency declarations before deployment.\n\nThe plugin reads dependencies from setup.py (via eval), setup.cfg, pyproject.toml (PEP 621 or Poetry format), or requirements.txt. It includes a known mapping of package names to module names for common third-party packages, and allows custom mappings via flake8 configuration for private or renamed packages. A critical caveat: because it evaluates setup.py code to extract dependencies, you should only run it on projects you trust.","worth_installing":"Yes, if you want automated validation that your code's imports match your declared dependencies. The low install friction and permissive license make it a straightforward addition to flake8 workflows. However, the aging maintenance status (last release 356 days ago) and the security caveat around eval() of setup.py mean you should only use it on trusted codebases and monitor the project for updates."},"id":"flake8-requirements","links":{"html":"https://skillfed.io/packages/flake8-requirements","md":"https://skillfed.io/packages/flake8-requirements.md","pypi":"https://pypi.org/project/flake8-requirements/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-08-23","license_spdx":null,"license_treatment":"permissive","name":"flake8-requirements","python_support":"supports_current","summary":"Package requirements checker, plugin for flake8"},"popularity":{"monthly_downloads":196184,"position":9793,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.0"}
