From ff5356625974301c149a5ada5f6a0988d9670aaa Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Thu, 12 Oct 2023 20:09:23 -0500 Subject: [PATCH] Add docker target to noxfile --- noxfile.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/noxfile.py b/noxfile.py index 234f4f9..8dce359 100644 --- a/noxfile.py +++ b/noxfile.py @@ -42,3 +42,19 @@ def lock(session: nox.Session) -> None: ) if intermediate_requirements.exists(): intermediate_requirements.unlink() + + +@nox.session(venv_backend=None) +def docker(session: nox.Session) -> None: + """ + Build a lock file with pip-tools using Docker + + Examples: + + $ nox --session docker + """ + session.run( + "bash", + "lock.sh", + external=True, + )