Samathy / pip-auto-compile

pre-commit hook to automatically pip-compile your requirements.in files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip-auto-compile

A Pre-Commit hook to compile modified requirements.in files into requirements.txt files. Works with both Python2, and Python3, so you can regenerate requirements.txt with the correct interpreter version, just specify language_version in your pre-commit hooks config.

Usage

- repo: https://github.com/samathy/pip-auto-compile
    rev: 0.1.0
    hooks:
        - id: pip-auto-compile
          files: requirements(-[^.*])?in$
          language: python
          language_version: python3  
        - id: pip-auto-compile
          files: python_2_src/requirements(-[^.*])?in$
          language: python
          language_version: python2.7
          args:
          - --pip-compile-arg=--allow-unsafe

About

pre-commit hook to automatically pip-compile your requirements.in files

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%