mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 05:20:49 -05:00
Non-basename glob matches (e.g., for `--per-file-ignores`) assume that the path has been converted to an absolute path. (We do this for filenames as part of the directory traversal.) For filenames passed via stdin, though, we're missing this conversion. So `--per-file-ignores` that rely on the _basename_ worked as expected, but directory paths did not. Closes #1840.