Hi,I’m working in a company which have restricted ...
# general
m
Hi,I’m working in a company which have restricted access to the internet. I’m trying to make a small python project with formatter and linter. I configured everything I can to access local repository(pex-tool, pypi repositories etc..) and when I’m doing pants run python/main.py everything runs fine. But when I’m trying to run pants lint :: I’m getting error that it’s trying to install some packages (from the lock file of black - files.pythonhosted.org … ) and I can’t see anywhere I can override it.. I would like some help if someone tackled it before 🙂
h
You’ll need to generate a custom lockfile for black, that uses custom repositories. See here for details.
You’ll need to do this for all your tools, so you may prefer to have one big lockfile for all of them, and point all the tool subsystems to that lockfile.
m
I will try it today, thank you very much 🙏