Skip to content

Commit

Permalink
Add docker target to noxfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Oct 13, 2023
1 parent 6854e5e commit ff53566
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit ff53566

Please sign in to comment.