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

Incompatible with current release of black #75

Open
gmattar opened this issue Nov 30, 2023 · 1 comment
Open

Incompatible with current release of black #75

gmattar opened this issue Nov 30, 2023 · 1 comment

Comments

@gmattar
Copy link

gmattar commented Nov 30, 2023

Traceback (most recent call last):
  File "./env/bin/black-nb", line 8, in <module>
    sys.exit(cli())
  File "./env/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "./env/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "./env/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "./env/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "./env/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "./env/lib/python3.9/site-packages/black_nb/cli.py", line 195, in cli
    sources = black.get_sources(
TypeError: get_sources() missing required keyword-only argument 'root'

black-nb 0.7
black 23.11.0

@Avs163
Copy link

Avs163 commented Mar 29, 2024

One solution is to create a virtual env with python 3.7 version, activate the env, and then do pip install black-nb and then run the command. It would work.

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

No branches or pull requests

2 participants