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
- Host: GitHub
- URL: https://github.com/martinthoma/check-pip-compile
- Owner: MartinThoma
- Created: 2020-09-22T18:52:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-04T21:12:59.000Z (almost 4 years ago)
- Last Synced: 2025-03-30T05:41:12.373Z (9 months ago)
- Topics: pip-compile, pre-commit, pre-commit-hook, python-dependencies
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://badge.fury.io/py/check-pip-compile)
[](https://github.com/MartinThoma/check-pip-compile)
[](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
```