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

bug: The blacken_docs API has been updated #22

Closed
jexio opened this issue Sep 10, 2024 · 1 comment
Closed

bug: The blacken_docs API has been updated #22

jexio opened this issue Sep 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jexio
Copy link
Contributor

jexio commented Sep 10, 2024

Description of the bug

TypeError: format_file() missing 1 required positional argument: 'check_only'

To Reproduce

blacken_docs.run(*PY_SRC_LIST, "docs", exts=["py", "md"], ...)

Traceback (most recent call last):

    File "/home/user/.cache/pypoetry/virtualenvs/irv-logging-SL_A2R03-py3.12/lib/python3.12/site-packages/failprint/runners.py", line 214, in run_function_get_code
      result = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
    File "/home/user/.cache/pypoetry/virtualenvs/irv-logging-SL_A2R03-py3.12/lib/python3.12/site-packages/failprint/lazy.py", line 37, in __call__
      return self.call(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/user/.cache/pypoetry/virtualenvs/irv-logging-SL_A2R03-py3.12/lib/python3.12/site-packages/duty/callables/blacken_docs.py", line 78, in run
      retv |= format_file(
              ^^^^^^^^^^^^
  TypeError: format_file() missing 1 required positional argument: 'check_only'

Expected behavior

Environment information

  • System: Linux-6.8.0-40-generic-x86_64-with-glibc2.35
  • Python: cpython 3.12.5 (/home/user/.cache/pypoetry/virtualenvs/irv-logging-SL_A2R03-py3.12/bin/python)
  • Environment variables:
  • Installed packages:
    • duty v1.4.1

Additional context

blacken_docs == 1.18.0

@jexio jexio added the unconfirmed This bug was not reproduced yet label Sep 10, 2024
@pawamoy pawamoy added bug Something isn't working and removed unconfirmed This bug was not reproduced yet labels Sep 10, 2024
@pawamoy
Copy link
Owner

pawamoy commented Sep 10, 2024

Thanks for the report, fixed in 1.4.2 🙂

@pawamoy pawamoy closed this as completed Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants