ruff/crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib
Victor Hugo Gomes 3353d07938
[flake8-use-pathlib] Fix PTH104false positive when rename is passed a file descriptor (#17712)
## Summary
Contains the same changes to the semantic type inference as
https://github.com/astral-sh/ruff/pull/17705.

Fixes #17694
<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

<!-- How was it tested? -->
Snapshot tests.

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
2025-05-01 10:01:17 -04:00
..
full_name.py [flake8-use-pathlib] Fix PTH104false positive when rename is passed a file descriptor (#17712) 2025-05-01 10:01:17 -04:00
import_as.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
import_from.py [flake8-bandit] Check for builtins instead of builtin (S102, PTH123) (#15443) 2025-01-12 19:45:31 -05:00
import_from_as.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH201.py [flake8-use-pathlib] Catch redundant joins in PTH201 and avoid syntax errors (#15177) 2024-12-30 03:31:35 +00:00
PTH202.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH203.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH204.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH205.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH206.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH207.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PTH208.py [flake8-use-pathlib] Avoid suggesting Path.iterdir() for os.listdir with file descriptor (PTH208) (#17715) 2025-04-30 20:08:57 +05:30
PTH210.py [flake8-use-pathlib] Extend check for invalid path suffix to include the case "." (PTH210) (#14902) 2024-12-12 13:30:17 -06:00
PTH210_1.py [flake8-use-pathlib] Extend check for invalid path suffix to include the case "." (PTH210) (#14902) 2024-12-12 13:30:17 -06:00
py_path_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
py_path_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
use_pathlib.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00