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

Black is currently failing in CI #1621

Closed
terriko opened this issue Mar 29, 2022 · 0 comments · Fixed by #1622
Closed

Black is currently failing in CI #1621

terriko opened this issue Mar 29, 2022 · 0 comments · Fixed by #1622
Assignees

Comments

@terriko
Copy link
Contributor

terriko commented Mar 29, 2022

 - hook id: black
- exit code: 1

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repohp3yjl3l/py_env-python3.10/bin/black", line 8, in <module>
    sys.exit(patched_main())
  File "/home/runner/.cache/pre-commit/repohp3yjl3l/py_env-python3.10/lib/python3.10/site-packages/black/__init__.py", line 1423, in patched_main
    patch_click()
  File "/home/runner/.cache/pre-commit/repohp3yjl3l/py_env-python3.10/lib/python3.10/site-packages/black/__init__.py", line 1409, in patch_click
    from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/home/runner/.cache/pre-commit/repohp3yjl3l/py_env-python3.10/lib/python3.10/site-packages/click/__init__.py)

Looks like the recommended fix is to upgrade black, since they have a new version to fix this:
psf/black#2964

I'll do that shortly.

@terriko terriko self-assigned this Mar 29, 2022
terriko added a commit to terriko/cve-bin-tool that referenced this issue Mar 29, 2022
terriko added a commit that referenced this issue Mar 29, 2022
* ci: upgrade black (fixes #1621)

* ci: improve PR title handling for gitlint (fixes #1624)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant