Commits
Click on a commit to change the comparison rangeHandle "-" path as extensionless
Since #16923, `-` stdin paths are only supported on the `RequirementsSource::Extensionless`. However, parsing of cli arguments using `from_requirements_txt`, `from_constraints_txt` `from_overrides_txt` would always output a `RequirementsSource::RequirementsTxt`. I've added a small check in those for the `-` paths to use `ExtensionLess`.
I'm not too sure about this change, as it would also implicitly start allowing PEP 723 scripts as input to overrides/constraints. I don't see the direct issue in that, but then maybe we should explicitly handle it so that an `--overrides=script.py` would also be supported.17 hours ago
by EndPositive Add tests12 hours ago
by EndPositive clippy clip12 hours ago
by EndPositive