Skip to content

pre-commit, black and isort #4226

@rcomer

Description

@rcomer

📰 Custom Issue

When committing a change to a local branch, black and isort now tell you which files need fixing, but don't go ahead and fix them. Is this intentional? I think they were changed to do a --check at #4181, which makes sense within the context of the CI, but it's not obviously so helpful when committing a change.

In order to commit my change, I installed black and isort to run them directly. I looked in .pre-commit-config.yaml to find out what versions I needed. conda couldn't seem to find the specified black version, so installed that with pip instead. This all feels unnecessarily complicated - is there a simpler way to install the right versions of these tools?

Metadata

Metadata

Assignees

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