Skip to content

Hook installs an ancient version of black #1593

@joshtemple

Description

@joshtemple

When I run pre-commit run -v for my black hook, I see the following output:

[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/joshuat/.cache/pre-commit/patch1599590125.
black....................................................................Passed
- hook id: black
- duration: 0.22s

black, version 0.1.dev1+g2354126

Here's the config file.

repos:
  - repo: https://github.com/psf/black
    rev: 20.8b1
    hooks:
      - id: black
        language_version: python3
        args: [--version]

Why isn't pre-commit installing the correct version of Black? I've tried running pre-commit clean and reinstalling, but it still shows the old version.

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