-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
maintenanceFor maintenance tasksFor maintenance tasks
Description
os.path (and related utilities from the os module) should be replaced by pathlib.Path and its higher-level API where performance is not a concern.
Notes
- As far as I know there are not issue with performance related to this. In other words, there is no place where
os.pathis used that usingPath/its API instead would incur noticeable performance costs. - In cases where that may be the case, it's almost always the case the
os.pathis being called on a path string that is usually usingos.path.joinanyways.- In some cases, this can be extracted from loops (examples?).
- I'm unsure if performance is still a concern here; the bottom line is that
Pathis easier to support thanstr+os.path. - This can be enabled as a
rufflinter ruleset (PTH), which is currently disabled.
Metadata
Metadata
Assignees
Labels
maintenanceFor maintenance tasksFor maintenance tasks