From 2454305ef845b6d0bf5ce3c16b184411d9abb9eb Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 12 Jan 2025 19:55:46 -0500 Subject: [PATCH] [`flake8-pathlib`] Fix `--select` for `os-path-dirname` (`PTH120`) (#15446) ## Summary Closes https://github.com/astral-sh/ruff/issues/15439. --- crates/ruff_linter/src/checkers/ast/analyze/expression.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruff_linter/src/checkers/ast/analyze/expression.rs b/crates/ruff_linter/src/checkers/ast/analyze/expression.rs index 3902f266d0..49819cfb66 100644 --- a/crates/ruff_linter/src/checkers/ast/analyze/expression.rs +++ b/crates/ruff_linter/src/checkers/ast/analyze/expression.rs @@ -974,6 +974,7 @@ pub(crate) fn expression(expr: &Expr, checker: &mut Checker) { Rule::OsPathIsabs, Rule::OsPathJoin, Rule::OsPathBasename, + Rule::OsPathDirname, Rule::OsPathSamefile, Rule::OsPathSplitext, Rule::BuiltinOpen,