Enable Ruff flake8-use-pathlib (PTH) (autofix only) (#13750)

This commit is contained in:
Avasam
2025-04-01 13:27:33 +02:00
committed by GitHub
parent 5b6d2c93aa
commit df1206f3cb
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -76,6 +76,9 @@ select = [
"FURB169", # Compare the identities of `{object}` and None instead of their respective types
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
"FURB187", # Use of assignment of `reversed` on list `{name}`
# Autofixable flake8-use-pathlib only
"PTH201", # Do not pass the current directory explicitly to `Path`
"PTH210", # Invalid suffix passed to `.with_suffix()`
# PYI: only enable rules that have autofixes and that we always want to fix (even manually),
# avoids duplicate # noqa with flake8-pyi
"PYI009", # Empty body should contain `...`, not pass