Skip to content

usethis tool import-linter can break pyproject.toml #862

Description

@nathanjmcdougall

Steps to reproduce on an empty dir

uvx usethis init
uvx pyproject-fmt pyproject.toml
uvx usethis tool import-linter

It's related to the Ruff configuration

[tool.ruff]
line-length = 88
format.docstring-code-format = true

lint.select = [ "A", "C4", "E4", "E7", "E9", "F", "FLY", "FURB", "I", "INP", "PLE", "PLR", "PT", "RUF", "SIM", "UP" ]

[lint.per-file-ignores]
"*/tests/**" = ["INP"]
lint.ignore = [ "PLR2004", "SIM108" ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions