Skip to content
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

style: Fix os-getcwd (PTH109) by replacing os.getcwd() calls with Path.cwd() #4413

Merged
merged 1 commit into from
Sep 28, 2024

Commits on Sep 28, 2024

  1. style: Fix os-getcwd (PTH109) by replacing os.getcwd() calls with Pat…

    …h.cwd()
    
    Ruff rule: https://docs.astral.sh/ruff/rules/os-getcwd/
    
    When unable to confirm a Path would be accepted, I wrapped Path.cwd() with str(), so the variable would remain a string.
    When I had to add an import, I placed it such that it tends to what isort would do, but without changing other imports around it.
    echoix committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    238bb33 View commit details
    Browse the repository at this point in the history