Skip to main content

Check the missing packages in requirements.txt

Project description

check-requirements-txt

A tool (and pre-commit hook) to automatically check the missing packages in requirements.txt.

Install

First install this package into current python env

python setup.py install

Then set up pre-commit hooks

See pre-commit for instructions

Sample .pre-commit-config.yaml:

NOTE: Due to the pre-commit isolated pyenv runtime, this package can't be act as a normal git repo pre-commit hooks

default_stages: [commit]

repos:
  - repo: local
    hooks:
      - id: check-requirements-txt
        name: check-requirements-txt
        description: Check the missing packages in requirements.txt.
        entry: check-requirements-txt
        args: ['--ignore', 'pip,']
        language: python
        types: [python]

check-requirements-txt can be used as a normal cli tool, see check-requirements-txt --help for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check_requirements_txt-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

check_requirements_txt-1.0.0-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page