From 5f2dea3db93cb5e313b654c0c26750195827b86f Mon Sep 17 00:00:00 2001 From: Albert Tugushev Date: Wed, 18 Mar 2020 23:17:56 +0700 Subject: [PATCH] Address review comments Note about configuring `args` and `files`. --- README.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.rst b/README.rst index 8282a122f..96832cd67 100644 --- a/README.rst +++ b/README.rst @@ -325,6 +325,19 @@ Sample ``.pre-commit-config.yaml``: hooks: - id: pip-compile +You might want to customize ``pip-compile`` args by configuring ``args`` and/or ``files``, for example: + +.. code:: + + repos: + - repo: https://github.com/jazzband/pip-tools + rev: 4.2.0 + hooks: + - id: pip-compile + files: ^requirements/production\.(in|txt)$ + args: [--index-url=https://example.com, requirements/production.in] + + Example usage for ``pip-sync`` ==============================