ruff/crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib
chiri 883701ae88
[`flake8-use-pathlib`] Make fixes unsafe when types change in compound statements (`PTH104`, `PTH105`, `PTH109`, `PTH115`) (#22009)
## Summary

Fixes https://github.com/astral-sh/ruff/issues/21794

## Test Plan

`cargo nextest run flake8_use_pathlib`
2025-12-17 12:31:27 -05:00
..
PTH123.py [`flake8-use-pathlib`] Add fix for `PTH123` (#20169) 2025-09-17 15:47:29 -04:00
PTH201.py [`flake8-use-pathlib`] Expand `PTH201` to check all `PurePath` subclasses (#19440) 2025-07-31 22:18:07 -04:00
PTH202.py [`flake8-use-pathlib`] Add autofix for `PTH202` (#18763) 2025-06-24 17:58:31 +00:00
PTH202_2.py [`flake8-use-pathlib`] Add autofix for `PTH202` (#18763) 2025-06-24 17:58:31 +00:00
PTH203.py [`flake8-use-pathlib`] Add autofixes for `PTH203`, `PTH204`, `PTH205` (#18922) 2025-07-07 16:56:21 -04: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 [`flake8-use-pathlib`] `PTH*` suppress diagnostic for all `os.*` functions that have the `dir_fd` parameter (#17968) 2025-05-12 16:11:56 -04: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`] Fix false negative on direct `Path()` instantiation (`PTH210`) (#19388) 2025-07-16 20:43:03 +00: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
PTH210_2.py [`flake8-use-pathlib`] Skip single dots for `invalid-pathlib-with-suffix` (`PTH210`) on versions >= 3.14 (#19331) 2025-07-15 07:05:00 -05:00
PTH211.py [`flake8-use-pathlib`] Add autofix for `PTH211` (#20009) 2025-08-22 12:38:37 -05:00
full_name.py [`flake8-use-pathlib`] Make fixes unsafe when types change in compound statements (`PTH104`, `PTH105`, `PTH109`, `PTH115`) (#22009) 2025-12-17 12:31:27 -05:00
import_as.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
import_from.py [`flake8-use-pathlib`] Add fix for `PTH123` (#20169) 2025-09-17 15:47:29 -04:00
import_from_as.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02: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