./pants generate-lockfiles [args]
Generate lockfiles for Python third-party dependencies.
Only generate lockfiles for the specified resolve(s).
For now, resolves are the options scope for each Python tool that supports lockfiles, such as
mypy-protobuf. For example, you can run
./pants generate-lockfiles --resolve=black --resolve=pytest to only generate the lockfile for those two tools.
If you specify an invalid resolve name, like 'fake', Pants will output all possible values.
If not specified, Pants will generate for all resolves.
If set, lockfile headers will say to run this command to regenerate the lockfile, rather than running
./pants generate-lockfiles --resolve=<name> like normal.
bandit, black, coverage-py, docformatter, download-pex-bin, flake8, generate-lockfiles, grpc-python-plugin, ipython, isort, lambdex, mypy, mypy-protobuf, pex, poetry, protoc, pylint, pytest, python-infer, python-native-code, python-protobuf, python-repos, python-setup, setuptools, shell-setup, shellcheck, source, subprocess-environment, yapf
Updated 13 days ago