An open API service indexing awesome lists of open source software.

https://github.com/martinthoma/check-pip-compile

Check if pip-compile needs to be run
https://github.com/martinthoma/check-pip-compile

pip-compile pre-commit pre-commit-hook python-dependencies

Last synced: 8 months ago
JSON representation

Check if pip-compile needs to be run

Awesome Lists containing this project

README

          

[![PyPI version](https://badge.fury.io/py/check-pip-compile.svg)](https://badge.fury.io/py/check-pip-compile)
[![Code on Github](https://img.shields.io/badge/Code-GitHub-brightgreen)](https://github.com/MartinThoma/check-pip-compile)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# check_pip_compile

Automatically verify if you need to run [pip-compile](https://pypi.org/project/pip-tools/).

## Usage

You can use it as a [pre-commit](https://pre-commit.com/) hook:

```yaml
- repo: https://github.com/MartinThoma/check-pip-compile
rev: 0.1.0
hooks:
- id: check-pip-compile
args: ['.'] # it's recommended to specify the files you want
```

or via command line:

```
$ check_pip_compile .
Run 'pip-compile requirements-dev.in' (2020-09-22 22:47:11.551971), as requirements-dev.txt (2020-09-02 09:53:58.287945) might be outdated
Run 'pip-compile setup.py', as no corresponding txt file exists

$ check_pip_compile setup.py requirements-lint.in
Run 'pip-compile setup.py', as no corresponding txt file exists
```