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

Hook installs an ancient version of black #1593

Closed
joshtemple opened this issue Sep 8, 2020 · 3 comments
Closed

Hook installs an ancient version of black #1593

joshtemple opened this issue Sep 8, 2020 · 3 comments

Comments

@joshtemple
Copy link

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.

@asottile
Copy link
Member

asottile commented Sep 8, 2020

the version is bogus, this is due to setuptools-scm not knowing what's up

@asottile asottile closed this as completed Sep 8, 2020
@asottile
Copy link
Member

asottile commented Sep 8, 2020

(it's actually 20.8b1, you can verify using the --help and checking for the new options)

@asottile
Copy link
Member

asottile commented Sep 8, 2020

also that the g version matches the tag: https://github.com/psf/black/releases/tag/20.8b1

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

No branches or pull requests

2 participants