Does pants recommend to create a lockfile to each ...
# general
q
Does pants recommend to create a lockfile to each subsystem (e.g. pytest, mypy, ruff) separately? or recommend to create a single lockfile (e.g. python-default)?
n
There's a section about it in the docs with some pros and cons mentioned: https://www.pantsbuild.org/docs/python-lockfiles#sharing-lockfiles-between-tools-and-code
q
thanks for the link. ive checked this before, and my thought was to create lockfiles separately. but not sure if my decision is good. so i wonder if the community knows a good practice.
c
I would probably not mix my main resolve (i.e. python-default) with a tools resolve. Whether to use a single tool resolve or one per tool.. 🤷 as long as there are no conflicts I guess it could be easier to go with only one tool resolve.
👍 1
q
Thanks Andreas! I haven't thought about that option. That makes sense to me having 2 lockfiles; one for python-default, other for tools such as rust, black and mypy.
👍 1