bitter-ability-32190
12/27/2021, 9:19 PMextra_requirements
to a Pants thirdparty lockfile?
I'm waiting on upstream PRs to merge, so in the meantime I'd like to use my branch so I'm not stuck. But setting git+<https://github.com/>....
results in an error.bitter-ability-32190
12/27/2021, 9:20 PMhundreds-father-404
12/27/2021, 9:21 PMlockfile = "<none>"
:/bitter-ability-32190
12/27/2021, 9:23 PMbitter-ability-32190
12/27/2021, 9:25 PMIf you want to write first-party plugins for other linters like Flake8, let us know on Slack.
hundreds-father-404
12/27/2021, 9:32 PMflake8-2020
for example, but consuming via first-party sources rather than third-party distribution. Is that what you mean?bitter-ability-32190
12/27/2021, 9:33 PMflake8
which when loaded monkeypatches the relevant codebitter-ability-32190
12/27/2021, 9:34 PMflake8
manually via python)hundreds-father-404
12/27/2021, 9:42 PMbitter-ability-32190
12/27/2021, 9:45 PMhundreds-father-404
12/27/2021, 9:51 PM[flake8].extra_requirements
...that will remove the risk of things breaking overnight. But it does not help with supply chain because of --hash
not working.bitter-ability-32190
12/27/2021, 9:52 PMbitter-ability-32190
12/27/2021, 9:53 PMbitter-ability-32190
12/28/2021, 4:05 PMlint
with flake8
after this change still shows unexpected errors...
I'll try with --no=...-cleanup
stuffbitter-ability-32190
12/28/2021, 4:20 PMbitter-ability-32190
12/28/2021, 4:20 PM[flake8]
version = "flake8==4.0.1"
lockfile = "<none>"
extra_requirements.add = [
"darglint@ git+<https://github.com/thejcannon/darglint@master#egg=darglint>",
...
bitter-ability-32190
12/28/2021, 4:26 PMhundreds-father-404
12/28/2021, 5:57 PM--no-process-cleanup
and then unzip
to look at PEX-INFO
, it's showing the PyPI version? That would be a bug if sobitter-ability-32190
12/28/2021, 6:00 PMbitter-ability-32190
12/28/2021, 9:04 PMbitter-ability-32190
12/28/2021, 9:05 PMbitter-ability-32190
12/28/2021, 9:09 PMbitter-ability-32190
12/28/2021, 9:45 PMhundreds-father-404
12/28/2021, 9:48 PMpylint/subsystem.py
, the weird restrictions on how to set up PYTHONPATH/source roots was definitely the most confusing part when I added this all last yearbitter-ability-32190
12/28/2021, 9:52 PMhundreds-father-404
12/28/2021, 9:54 PMbitter-ability-32190
12/28/2021, 10:00 PMenough-analyst-54434
12/29/2021, 2:18 AMenough-analyst-54434
12/29/2021, 2:34 AM$ pex setuptools -- -c 'from pkg_resources import Requirement; req = Requirement.parse("darglint @ git+<https://github.com/thejcannon/darglint@XYZ>"); print(f"req: {req} spec: {req.specifier}")'
req: darglint@ git+<https://github.com/thejcannon/darglint@XYZ> spec:
And these lines of our code:
+ https://github.com/pantsbuild/pants/blob/315dd5c37a3e3394dee363e232d3c516583d4ead/src/python/pants/backend/python/subsystems/poetry.py#L97
+ https://github.com/pantsbuild/pants/blob/315dd5c37a3e3394dee363e232d3c516583d4ead/src/python/pants/backend/python/subsystems/poetry.py#L107enough-analyst-54434
12/29/2021, 2:35 AMenough-analyst-54434
12/29/2021, 2:43 AM