Damian Shaw
68529081c2
Enforce f-strings via Ruff ( #12393 )
2023-11-07 09:14:56 +00:00
Pradyun Gedam
78ab4cf071
Bump all linters other than mypy ( #11901 )
2023-03-27 20:03:11 +01:00
William Woodruff
d9502ff501
tests: fix comment
...
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:38:51 -08:00
William Woodruff
464d16618e
src, tests: use deprecation instead of hard error for egg fragments
...
This turns invalid egg fragments into a soft error, with a scheduled
deprecation period of two releases.
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-12-02 21:33:22 -08:00
William Woodruff
227fbee124
tests: add more Link tests
...
This exercises our expectation that egg fragments don't include version
specifiers and are evaluated eagerly.
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-11-22 17:40:55 -05:00
Jon Dufresne
60c274be2d
Complete type annotations of tests/unit/ directory
2021-09-23 05:44:54 -07:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Tzu-ping Chung
2da77e97a2
Smarter (and looser) link equivalency logic
2021-07-22 15:27:10 +08:00
Chris Hunt
658425a555
Add explicit test for hg+file
...
This was previously failing on the master branch.
2019-09-22 11:06:07 -04:00
Stéphane Bidoul (ACSONE)
2e1dfbef76
consolidate vcs link detection
2019-08-16 08:14:33 +02:00
Chris Jerdonek
0a1571ba03
Fix a NoneType AttributeError when evaluating hashes.
2019-07-23 05:22:59 -04:00
Chris Jerdonek
e85a848ec8
Add Link.is_hash_allowed().
2019-07-11 01:34:46 -07:00
Chris Jerdonek
fdde0b483e
Add Link.yanked_reason.
2019-06-25 03:34:38 -07:00
Chris Jerdonek
0ed518f0dc
Fix an edge case where Link.filename can leak auth information.
2019-06-22 16:44:13 -07:00
Chris Jerdonek
b6077c5227
Move the existing Link tests to test_link.py.
2019-06-22 16:44:13 -07:00
Chris Jerdonek
0e741ef9bf
Parse the url when creating a Link object.
2019-06-22 16:44:07 -07:00