Can I generate `[flake8].extra_requirements` from ...
# general
l
Can I generate
[flake8].extra_requirements
from a
requirements.txt
file ? Instead of hardcoding it in the pants.toml ?
b
Not with
generate-lockfiles
, but you can if you just use
pex
to lock directly, and set
[python].invalid_lockfile_behavior = "ignore"
If that's something you're interested in LMK.
But also, can I ask why? 🙂
l
I just have a lot of requirements files I have right now (
requirements-flake8.txt
,
requirements-pytest.txt
, Etc) And was wondering if I can reuse them instead of rewriting them in a config file which is pants specific
b
So, this is totally possible (I think, haven't tried). Mind making a GitHub Discussion and I'll answer over there (for posterity)
l
b
Replied, let me know if that works so I can mark it as the answer 😛
✅ 1
And if you wanna know how to sandbox
pex
for anyone to use let me know as well