-
-
Notifications
You must be signed in to change notification settings - Fork 392
CQ: Fix PTH112: os.path.isdir() should be replaced by Path.is_dir()
#6603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ninsbl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few cases where join is not needed.
The whole get_lib_path function could be simplified by using Path throughout, but that is a different issue....
Co-authored-by: Stefan Blumentrath <stefan.blumentrath@gmx.de>
|
@ninsbl is the isdir places you highlighted fixed in here? Otherwise the conflicts are solved and no other rule violations once together |
ninsbl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is in unnecessary join left, but since os.path.join has to be tackled later anyway, I think is is OK to merge. Feel free to disregard this occurrence...
Ruff rule: https://docs.astral.sh/ruff/rules/os-path-isdir/
Continues on #6573