Skip to content

Consider using flake8-use-pathlib #2433

@ulgens

Description

@ulgens

We merged #2312 and we are making a better use of Pathlib now, but the work there was manual and we didn't add any automated way to enforce it.

While checking ruff rules for another project, I found that https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth exists. Because we don't use ruff yet, I checked the original project and it looks like it's not maintained anymore: https://gitlab.com/RoPP/flake8-use-pathlib

I'm creating this issue so we won't forget that the tool exists and can use it if the project's maintenance status changes or when we migrate to Ruff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions