This commit adds two new tests. One checks that a symbol in the current project gets priority over a symbol in the standard library. Another checks that a symbol in a third party dependency gets priority over a symbol in the standard library. We don't get either of these right today. Note that these comparisons are done ceteris paribus. A symbol from the standard library could still be ranked above a symbol elsewhere. (Although I believe currently this is somewhat rare.)
13 lines
386 B
Python
13 lines
386 B
Python
# This test was originally written to
|
|
# check that a third party dependency
|
|
# gets priority over stdlib. But it was
|
|
# not clearly the right choice[1].
|
|
#
|
|
# 2026-01-09: We stuck with it for now,
|
|
# but it seems likely that we'll want
|
|
# to regress this task in favor of
|
|
# another.
|
|
#
|
|
# [1]: https://github.com/astral-sh/ruff/pull/22460#discussion_r2676343225
|
|
fullma<CURSOR: regex.fullmatch>
|