ruff/crates/ruff_linter/resources/test/fixtures/flake8_use_pathlib
chiri 89258f1938
[`flake8-use-pathlib`] Add autofix for `PTH101`, `PTH104`, `PTH105`, `PTH121` (#19404)
## Summary

Part of https://github.com/astral-sh/ruff/issues/2331

## Test Plan

`cargo nextest run flake8_use_pathlib`
2025-07-23 12:13:43 -04: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 [`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]: Replace os.symlink with Path.symlink_to (PTH211) (#18337) 2025-05-28 12:39:05 +02:00
full_name.py [`flake8-use-pathlib`] Add autofix for `PTH109` (#19245) 2025-07-17 10:11:43 -04: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 autofix for `PTH101`, `PTH104`, `PTH105`, `PTH121` (#19404) 2025-07-23 12:13:43 -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